Documentation ¶
Index ¶
- func Any[V any](xs []V, fn func(V) bool) bool
- func Elem[T comparable](collection []T, element T) bool
- func Filter[V any](xs []V, fn func(V) bool) []V
- func Foldl[T any, R any](initial R, xs []T, fn func(R, T) R) R
- func ForEach[T any](xs []T, fn func(T))
- func Map[T any, R any](xs []T, fn func(T) R) []R
- func Not(b bool) bool
- func Take[T any](n int, xs []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Elem ¶
func Elem[T comparable](collection []T, element T) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.