Documentation
¶
Index ¶
- func All[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (bool, error)
- func Any[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (bool, error)
- func ForEach[I ~[]IT, IT any](input I, action func(IT) error) error
- func GroupBy[I ~[]IT, IT any, K comparable](input I, getKey func(IT) K) ([][]IT, error)
- func GroupToMap[I ~[]IT, IT any, K comparable](input I, getKey func(IT) K) (map[K][]IT, error)
- func IndexOf[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (int, error)
- func MapToSlice[I ~map[K]V, K comparable, V, N any](input I, action func(K, V) (N, error)) ([]N, error)
- func Select[I ~[]IT, O ~[]OT, IT, OT any](input I, action func(IT) (OT, error)) (O, error)
- func SelectWhere[I ~[]IT, O ~[]OT, IT, OT any](input I, action func(IT) (bool, OT, error)) (O, error)
- func Where[I ~[]IT, IT any](input I, action func(IT) (bool, error)) (I, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupBy ¶
func GroupBy[I ~[]IT, IT any, K comparable](input I, getKey func(IT) K) ([][]IT, error)
func GroupToMap ¶
func GroupToMap[I ~[]IT, IT any, K comparable](input I, getKey func(IT) K) (map[K][]IT, error)
func MapToSlice ¶
func MapToSlice[I ~map[K]V, K comparable, V, N any](input I, action func(K, V) (N, error)) ([]N, error)
func SelectWhere ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.