Documentation ¶
Index ¶
- func All[T comparable](x T, vs ...T) bool
- func AllFn[T comparable](fn func(T) bool, vs ...T) bool
- func AllFnErr[T comparable](fn func(T) (bool, error), vs ...T) trier.Try[bool]
- func AllFnErrI[T comparable](fn func(int, T) (bool, error), vs ...T) trier.Try[bool]
- func AllFnI[T comparable](fn func(int, T) bool, vs ...T) bool
- func Append[T any](slice optioner.Option[[]T], elems optioner.Option[[]T]) optioner.Option[[]T]
- func AppendLift[T any](slice optioner.Option[[]T], items ...T) optioner.Option[[]T]
- func AppendOption[T any](slice optioner.Option[[]T], items ...optioner.Option[T]) optioner.Option[[]T]
- func Chunk[T comparable](size int, item ...T) [][]T
- func Contains[T comparable](v T, items ...T) bool
- func ContainsFn[T comparable](fn func(T) bool, items ...T) bool
- func ContainsFnErr[T comparable](fn func(T) (bool, error), items ...T) trier.Try[bool]
- func ContainsFnErrI[T comparable](fn func(int, T) (bool, error), items ...T) trier.Try[bool]
- func ContainsFnI[T comparable](fn func(int, T) bool, items ...T) bool
- func Dedup[T comparable](items ...T) []T
- func DedupFn[T any, K comparable](fn func(T) K, items ...T) []T
- func DedupFnErr[T any, K comparable](fn func(T) (K, error), items ...T) trier.Try[[]T]
- func Diff[T comparable](as, bs []T) []T
- func DiffFn[T any](as, bs []T, fn func(T, T) bool) []T
- func DiffFnErr[T any](as, bs []T, fn func(T, T) (bool, error)) trier.Try[[]T]
- func Each[T any](fn func(T), items ...T)
- func EachErr[T any](fn func(T) error, items ...T) error
- func Equals[T comparable](as, bs []T) bool
- func EqualsFn[T comparable](as, bs []T, fn func(T, T) bool) bool
- func EqualsFnErr[T comparable](as, bs []T, fn func(T, T) (bool, error)) trier.Try[bool]
- func Exist[T comparable](s T, items ...T) bool
- func ExistFn[T any](fn func(T) bool, items ...T) bool
- func ExistFnErr[T any](fn func(T) (bool, error), items ...T) trier.Try[bool]
- func Filter[T any](fn func(T) bool, items ...T) []T
- func FilterErr[T any](fn func(T) (bool, error), items ...T) trier.Try[[]T]
- func Find[T comparable](match T, items ...T) (T, bool)
- func FindFn[T any](fn func(T) bool, items ...T) (T, bool)
- func FindFnErr[T any](fn func(T) (bool, error), items ...T) trier.Try[optioner.Option[T]]
- func Flatten[T any](items ...[]T) []T
- func FlattenFn[T any, U any](fn func(vs []T) []U, items ...[]T) []U
- func FlattenFnErr[T any, U any](fn func(vs []T) ([]U, error), items ...[]T) trier.Try[[]U]
- func FoldLeft[I any, O any](initial O, fn func(O, I) O, items ...I) O
- func FoldLeftErr[I any, O any](initial O, fn func(O, I) (O, error), items ...I) trier.Try[O]
- func FoldLeftErrI[I any, O any](initial O, fn func(int, O, I) (O, error), items ...I) trier.Try[O]
- func FoldLeftI[I any, O any](initial O, fn func(int, O, I) O, items ...I) O
- func FoldRight[I any, O any](initial O, fn func(O, I) O, items ...I) O
- func FoldRightErr[I any, O any](initial O, fn func(O, I) (O, error), items ...I) trier.Try[O]
- func FoldRightErrI[I any, O any](initial O, fn func(int, O, I) (O, error), items ...I) trier.Try[O]
- func FoldRightI[I any, O any](initial O, fn func(int, O, I) O, items ...I) O
- func Head[T any](items ...T) optioner.Option[T]
- func Map[T any, U any](fn func(T) U, items optioner.Option[[]T]) optioner.Option[[]U]
- func MapErr[T any, U any](fn func(T) (U, error), items optioner.Option[[]T]) trier.Try[optioner.Option[[]U]]
- func MapErrI[T any, U any](fn func(int, T) (U, error), items optioner.Option[[]T]) trier.Try[optioner.Option[[]U]]
- func MapI[T any, U any](fn func(int, T) U, items optioner.Option[[]T]) optioner.Option[[]U]
- func ReduceTry[V any, A any](vs []V, fn func(V, A) (A, error), initial A) trier.Try[A]
- func Tail[T any](items ...T) optioner.Option[T]
- type Slicer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All[T comparable](x T, vs ...T) bool
func AllFn ¶
func AllFn[T comparable](fn func(T) bool, vs ...T) bool
func AppendLift ¶
func AppendOption ¶
func Chunk ¶
func Chunk[T comparable](size int, item ...T) [][]T
func Contains ¶
func Contains[T comparable](v T, items ...T) bool
func ContainsFn ¶
func ContainsFn[T comparable](fn func(T) bool, items ...T) bool
func ContainsFnErr ¶
func ContainsFnErrI ¶
func ContainsFnI ¶
func ContainsFnI[T comparable](fn func(int, T) bool, items ...T) bool
func Dedup ¶
func Dedup[T comparable](items ...T) []T
func DedupFn ¶
func DedupFn[T any, K comparable](fn func(T) K, items ...T) []T
func DedupFnErr ¶
func DedupFnErr[T any, K comparable](fn func(T) (K, error), items ...T) trier.Try[[]T]
func Diff ¶
func Diff[T comparable](as, bs []T) []T
func Equals ¶
func Equals[T comparable](as, bs []T) bool
func EqualsFn ¶
func EqualsFn[T comparable](as, bs []T, fn func(T, T) bool) bool
func EqualsFnErr ¶
func Exist ¶
func Exist[T comparable](s T, items ...T) bool
func Find ¶
func Find[T comparable](match T, items ...T) (T, bool)
func FlattenFnErr ¶
func FoldLeftErr ¶
func FoldLeftErrI ¶
func FoldRightErr ¶
func FoldRightErrI ¶
func FoldRightI ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.