Documentation ¶
Index ¶
- func All[T any](data *[]T, fn func(T) bool) bool
- func Any[T any](data *[]T, fn func(T) bool) bool
- func Cut[T comparable](data *[]T, sep T) ([]T, []T, bool)
- func Last[T any](data *[]T) T
- func Map[T, V any](data *[]T, fn func(T) V) []V
- func Reduce[T, V any](data *[]T, fn func(V, T) V, init V) V
- func Split[T comparable](data *[]T, sep T) [][]T
- func Sum[N int | float64](data *[]N) N
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cut ¶
func Cut[T comparable](data *[]T, sep T) ([]T, []T, bool)
func Split ¶
func Split[T comparable](data *[]T, sep T) [][]T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.