Documentation ¶
Index ¶
- func Apply[T any](in []T, f func(T))
- func Combinations[T any](in []T, r int) (out [][]T)
- func Cycle[T any](in []T) <-chan T
- func Filter[T any](in []T, f func(T) bool) (out []T)
- func Group[T any](s []T, n int) (out [][]T)
- func Map[T1, T2 any](in []T1, f func(T1) T2) (out []T2)
- func Max[T ~int | ~float32 | ~float64](in ...T) (out T)
- func Min[T ~int | ~float32 | ~float64](in ...T) (out T)
- func Must[T any](r T, err error) T
- func Reduce[T any](in []T, f func(a, b T) T, acc T) T
- func SlurpInt(s string) (out []int, err error)
- func Split[T any](in []T, f func(T) bool) (head, tail []T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Combinations ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.