Documentation ¶
Index ¶
- Constants
- func Every[T any](slice []T, fn func(T) bool) bool
- func EveryE[T any](slice []T, fn func(T) (bool, error)) (bool, error)
- func Filter[T any](slice []T, fn func(T) bool) []T
- func FilterE[T any](slice []T, fn func(T) (bool, error)) (res []T, err error)
- func Find[T any](slice []T, fn func(T) bool) (res T, ok bool)
- func FindE[T any](slice []T, fn func(T) (bool, error)) (res T, ok bool, err error)
- func FindIndex[T any](slice []T, fn func(T) bool) int
- func FindIndexE[T any](slice []T, fn func(T) (bool, error)) (int, error)
- func FindLast[T any](slice []T, fn func(T) bool) (res T, ok bool)
- func FindLastE[T any](slice []T, fn func(T) (bool, error)) (res T, ok bool, err error)
- func FindLastIndex[T any](slice []T, fn func(T) bool) int
- func FindLastIndexE[T any](slice []T, fn func(T) (bool, error)) (int, error)
- func FindLastPtr[T any](slice []T, fn func(T) bool) *T
- func FindLastPtrE[T any](slice []T, fn func(T) (bool, error)) (*T, error)
- func FindPtr[T any](slice []T, fn func(T) bool) *T
- func FindPtrE[T any](slice []T, fn func(T) (bool, error)) (*T, error)
- func Map[T1, T2 any](slice []T1, fn func(T1) T2) []T2
- func MapE[T1, T2 any](slice []T1, fn func(T1) (T2, error)) (res []T2, err error)
- func Reduce[T1, T2 any](slice []T1, fn func(acc T2, item T1) T2, initial T2) T2
- func ReduceE[T1, T2 any](slice []T1, fn func(acc T2, item T1) (T2, error), initial T2) (acc T2, err error)
- func Some[T any](slice []T, fn func(T) bool) bool
- func SomeE[T any](slice []T, fn func(T) (bool, error)) (bool, error)
Constants ¶
View Source
const ErrNotFound = merr.Code("not_found")
Variables ¶
This section is empty.
Functions ¶
func FindLastIndex ¶
func FindLastPtr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.