slice

package
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 1 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All added in v1.2.6

func All[T any](source []T, predicate func(T) bool) bool

Determines whether all elements of a slice satisfy a condition.

func Any added in v1.2.6

func Any[T any](source []T, predicate func(T) bool) bool

Determines whether any element of a slice satisfies a condition.

func FindAll added in v1.2.7

func FindAll[T any](source []T, predicate func(T) bool) []T

Retrieves all the elements that match the conditions defined by the specified predicate.

func Map added in v1.2.5

func Map[T, V any](source []T, mapper func(T) V) []V

Projects each element of a slice into a new form.

func PointersOf

func PointersOf(v interface{}) interface{}

PointersOf Returnes a pointer of

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL