Documentation ¶
Index ¶
- func Filter[T any](ctx context.Context, array []T, fn func(context.Context, T) (bool, error)) (r []T, err error)
- func Find[T any](ctx context.Context, array []T, fn func(context.Context, T) (bool, error)) (r T, found bool, err error)
- func Foreach[T any](ctx context.Context, array []T, fn func(context.Context, int, T) error) (err error)
- func Map[S any, R any](ctx context.Context, src []S, fn func(context.Context, S) (R, error)) (dst []R, err error)
- func MapOne[S any, R any](ctx context.Context, src S, fn func(context.Context, S) (R, error)) (dst R, err error)
- func Sort[T any](ctx context.Context, array []T, less func(context.Context, T, T) (bool, error)) (rr []T, err error)
- func Ternary(ctx context.Context, condition func(ctx context.Context) (ok bool), ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.