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 FindFirst[T any](predicate funcs.Predicate[T]) funcs.Applier[[]T, opt.Option[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) *T
- func HeadOption[T any](ts []T) opt.Option[T]
- func Join[T any](tss ...[]T) []T
- func Map[V, V1 any](mapper funcs.Mapper[V, V1]) funcs.Applier[[]V, []V1]
- func Split[T any](predicate funcs.Predicate[T]) func([]T) ([]T, []T)
- 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]
- func ToMultimapWithKeys[K comparable, V any](keyProducer func(V) K) funcs.Applier[[]V, map[K][]V]
- type FMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadOption ¶
func Split ¶
Split returns funcs.Applier producing suitable for predicate values on the left, and non-suitable on the right.
func ToMapWithKeys ¶
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]
func ToMultimapWithKeys ¶
func ToMultimapWithKeys[K comparable, V any](keyProducer func(V) K) funcs.Applier[[]V, map[K][]V]
Types ¶
Click to show internal directories.
Click to hide internal directories.