Documentation ¶
Index ¶
- func Exists[T any](predicate funcs.Predicate[T]) funcs.Applier[[]T, bool]
- func Filter[T any](predicate funcs.Predicate[T]) funcs.Applier[[]T, []T]
- func FlatMap[V, V1 any](fMap FMapper[V, V1]) funcs.Applier[[]V, []V1]
- func Flatten[T any](tss [][]T) []T
- func Head[T any](ts []T) T
- func HeadOpt[T any](ts []T) opt.Option[T]
- func Join[T any](tss ...[]T) []T
- func Map[V any, V1 any](mapper funcs.Mapper[V, V1]) funcs.Applier[[]V, []V1]
- func Tail[T any](ts []T) []T
- func ToMapWithKeys[K comparable, V any](keyProducer func(V) K) funcs.Applier[[]V, map[K]V]
- func ToMapWithValues[K comparable, V any](valueGenerator func(k K) V) funcs.Applier[[]K, map[K]V]
- type FMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMapWithKeys ¶ added in v0.0.46
func ToMapWithKeys[K comparable, V any](keyProducer func(V) K) funcs.Applier[[]V, map[K]V]
func ToMapWithValues ¶
func ToMapWithValues[K comparable, V any](valueGenerator func(k K) V) funcs.Applier[[]K, map[K]V]
Types ¶
Click to show internal directories.
Click to hide internal directories.