Documentation
¶
Index ¶
- func Abs[T constraints.Integer | constraints.Float](x T) T
- func All[T any](f func(T) bool, s iter.Seq[T]) bool
- func Any[T any](f func(T) bool, s iter.Seq[T]) bool
- func Filter[T any](f func(T) bool, s iter.Seq[T]) iter.Seq[T]
- func Flatten2D[T any](grid [][]T) []T
- func Map[In, Out any](f func(In) Out, s iter.Seq[In]) iter.Seq[Out]
- func Reduce[Sum, V any](f func(Sum, V) Sum, sum Sum, s iter.Seq[V]) Sum
- func Sum[T constraints.Integer | constraints.Float](s iter.Seq[T]) T
- func Tally[T comparable](in []T) map[T]int
- func Zip[V1, V2 any](x iter.Seq[V1], y iter.Seq[V2]) iter.Seq[Zipped[V1, V2]]
- type Zipped
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
func Abs[T constraints.Integer | constraints.Float](x T) T
func Sum ¶
func Sum[T constraints.Integer | constraints.Float](s iter.Seq[T]) T
func Tally ¶
func Tally[T comparable](in []T) map[T]int
Types ¶
Click to show internal directories.
Click to hide internal directories.