Documentation ¶
Index ¶
- func Contains[T comparable](slice []T, element T) bool
- func Filter[T any](ctx context.Context, slice []T, predicate function.Predicate[T]) []T
- func ForEach[T any](ctx context.Context, slice []T, consumer function.Consumer[T])
- func Map[S any, T any](ctx context.Context, slice []S, function function.Function[S, T]) []T
- func Reduce[T any](ctx context.Context, slice []T, operator function.Operator[T]) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](slice []T, element T) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.