Documentation ¶
Index ¶
- func All[T any](ts []T, predicate func(t T) bool) bool
- func Filter[T any](ts []T, fn func(t T) bool) []T
- func FindFirst[T any](ts []T, fn func(t T) bool) (returnedT T, found bool)
- func FindLast[T any](ts []T, fn func(t T) bool) (returnedT T, found bool)
- func Generate[U any](from, to int, fn func(t int) U) []U
- func Map[T, U any](ts []T, fn func(t T) U) []U
- func MapWithError[T, U any](ts []T, fn func(t T) (U, error)) ([]U, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapWithError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.