slices

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists[T any](predicate funcs.Predicate[T]) funcs.Applier[[]T, bool]

func Filter added in v0.0.13

func Filter[T any](predicate funcs.Predicate[T]) funcs.Applier[[]T, []T]

func FlatMap added in v0.0.27

func FlatMap[V, V1 any](fMap FMapper[V, V1]) funcs.Applier[[]V, []V1]

func Flatten added in v0.0.45

func Flatten[T any](tss [][]T) []T
func Head[T any](ts []T) T

func HeadOpt added in v0.0.24

func HeadOpt[T any](ts []T) opt.Option[T]

func Join added in v0.0.45

func Join[T any](tss ...[]T) []T

func Map

func Map[V any, V1 any](mapper funcs.Mapper[V, V1]) funcs.Applier[[]V, []V1]

func Tail added in v0.0.9

func Tail[T any](ts []T) []T

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

type FMapper added in v0.0.27

type FMapper[K, K1 any] funcs.Mapper[K, []K1]

Jump to

Keyboard shortcuts

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