Documentation ¶
Index ¶
- func All[T comparable](x T, vs ...T) bool
- func AllFn[T any](fn func(int, T) bool, vs ...T) bool
- func AllFnErr[T any](fn func(int, T) (bool, error), vs ...T) trier.Try[bool]
- func Append[T any](slice optioner.Option[[]T], elems optioner.Option[[]T]) optioner.Option[[]T]
- func AppendLift[T any](slice optioner.Option[[]T], elems ...T) optioner.Option[[]T]
- func AppendOption[T any](slice optioner.Option[[]T], elems ...optioner.Option[T]) optioner.Option[[]T]
- func Chunk[T any](size int, elem ...T) optioner.Option[[][]T]
- func Contains[T comparable](v T, elems ...T) bool
- func ContainsFn[T any](fn func(int, T) bool, elems ...T) bool
- func ContainsFnErr[T any](fn func(int, T) (bool, error), elems ...T) trier.Try[bool]
- func Dedup[T comparable](elems ...T) []T
- func DedupFn[T any, C comparable](fn func(int, T) C, elems ...T) []T
- func DedupFnErr[T any, C comparable](fn func(int, T) (C, error), elems ...T) trier.Try[[]T]
- func Diff[T comparable](as, bs []T) optioner.Option[[]T]
- func DiffFn[T any](as, bs []T, fn func(int, T) bool) optioner.Option[[]T]
- func DiffFnErr[T any](as, bs []T, fn func(int, T) (bool, error)) trier.Try[optioner.Option[[]T]]
- func Each[T any](fn func(int, T), elems ...T)
- func EachErr[T any](fn func(int, T) error, elems ...T) error
- func Equals[T comparable](as, bs []T) bool
- func EqualsFn[T any, C comparable](fn func(int, T) C, as, bs []T) bool
- func EqualsFnErr[T comparable, C comparable](fn func(int, T) (C, error), as, bs []T) trier.Try[bool]
- func Exist[T comparable](s T, elems ...T) bool
- func ExistFn[T any](fn func(int, T) bool, elems ...T) bool
- func ExistFnErr[T any](fn func(int, T) (bool, error), elems ...T) trier.Try[bool]
- func Filter[T any](fn func(int, T) bool, elems ...T) []T
- func FilterErr[T any](fn func(int, T) (bool, error), elems ...T) trier.Try[[]T]
- func Find[T comparable](match T, elems ...T) (T, bool)
- func FindFn[T any](fn func(int, T) bool, elems ...T) (T, bool)
- func FindFnErr[T any](fn func(int, T) (bool, error), elems ...T) trier.Try[optioner.Option[T]]
- func Flatten[T any](elems ...[]T) []T
- func Fold[I any, O any](initial O, fn func(int, O, I) O, elems ...I) O
- func FoldErr[I any, O any](initial O, fn func(int, O, I) (O, error), elems ...I) trier.Try[O]
- func FoldLeft[I any, O any](initial O, fn func(int, O, I) O, elems ...I) O
- func FoldLeftErr[I any, O any](initial O, fn func(int, O, I) (O, error), elems ...I) trier.Try[O]
- func FoldRight[I any, O any](initial O, fn func(int, O, I) O, elems ...I) O
- func FoldRightErr[I any, O any](initial O, fn func(int, O, I) (O, error), elems ...I) trier.Try[O]
- func Head[T any](elems ...T) optioner.Option[T]
- func Map[T any, U any](fn func(int, T) U, elems optioner.Option[[]T]) optioner.Option[[]U]
- func MapErr[T any, U any](fn func(int, T) (U, error), elems optioner.Option[[]T]) trier.Try[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](elems ...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 AppendLift ¶
func AppendOption ¶
func Contains ¶
func Contains[T comparable](v T, elems ...T) bool
func ContainsFnErr ¶
func Dedup ¶
func Dedup[T comparable](elems ...T) []T
func DedupFn ¶
func DedupFn[T any, C comparable](fn func(int, T) C, elems ...T) []T
func DedupFnErr ¶
func Diff ¶
func Diff[T comparable](as, bs []T) optioner.Option[[]T]
func Equals ¶
func Equals[T comparable](as, bs []T) bool
func EqualsFnErr ¶
func EqualsFnErr[T comparable, C comparable](fn func(int, T) (C, error), as, bs []T) trier.Try[bool]
func Exist ¶
func Exist[T comparable](s T, elems ...T) bool
func Find ¶
func Find[T comparable](match T, elems ...T) (T, bool)
func FoldLeftErr ¶
func FoldRightErr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.