Documentation ¶
Index ¶
- func Filter[A any](f FilterFunc[A], list []A) []A
- func Map[A any, B any](f MapFunc[A, B], list []A) []B
- func Max[T Number](a, b T) T
- func Min[T Number](a, b T) T
- func Range[T Int | Uint](start, stop, step T) []T
- func Reduce[A any](f ReduceFunc[A], list []A, init A) A
- func Reverse[T any](list []T) []T
- func Sum[T Number](slice []T) T
- type FilterFunc
- type Float
- type Int
- type MapFunc
- type Number
- type ReduceFunc
- type Tuple
- type Uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter[A any](f FilterFunc[A], list []A) []A
func Reduce ¶
func Reduce[A any](f ReduceFunc[A], list []A, init A) A
Types ¶
type FilterFunc ¶
type ReduceFunc ¶
type ReduceFunc[A any] func(A, A) A
Click to show internal directories.
Click to hide internal directories.