Documentation
¶
Index ¶
- func Filter[E any](s []E, predicate predicates.PredicateFunc[E]) []E
- func FilterI[E any](s []E, predicate predicates.PredicateIFunc[E]) []E
- func FindLastMap[E any, R any](s []E, mapFunc func(e E) (R, bool)) (R, int)
- func FindLastMapI[E any, R any](s []E, mapIFunc func(i int, e E) (R, bool)) (R, int)
- func FindLastMapIE[E any, R any](s []E, mapIFunc func(i int, e E) (R, bool, error)) (R, int, error)
- func FindMap[E any, R any](s []E, mapFunc func(e E) (R, bool)) (R, int)
- func FindMapI[E any, R any](s []E, mapIFunc func(i int, e E) (R, bool)) (R, int)
- func FindMapIE[E any, R any](s []E, mapIFunc func(i int, e E) (R, bool, error)) (R, int, error)
- func FlatMap[E any, R any](s []E, flatMapFunc func(E) []R) []R
- func FlatMapI[E any, R any](s []E, flatMapFunc func(int, E) []R) []R
- func FlatMapIE[E any, R any](s []E, flatMapFunc func(int, E) ([]R, error)) ([]R, error)
- func Map[E any, R any](s []E, mapFunc func(E) R) []R
- func MapI[E any, R any](s []E, mapFunc func(int, E) R) []R
- func MapIE[E any, R any](s []E, mapFunc func(int, E) (R, error)) ([]R, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter[E any](s []E, predicate predicates.PredicateFunc[E]) []E
func FilterI ¶
func FilterI[E any](s []E, predicate predicates.PredicateIFunc[E]) []E
func FindLastMapI ¶
func FindLastMapIE ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.