Documentation
¶
Index ¶
- func Permutations[S ~[]E, E any](in S) iter.Seq[S]
- func ReduceGroup[K comparable, V, Sum any](seq iter.Seq2[K, V], reducer func(accumulator Sum, current V) Sum, initial Sum) map[K]Sum
- func RunningReduce[V, Sum any](seq iter.Seq[V], reducer func(accumulator Sum, current V, i int) Sum, ...) iter.Seq[Sum]
- func SumOf[T any, E hiter.Numeric](seq iter.Seq[T], selector func(ele T) E) E
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Permutations ¶
Permutations returns an iterator that yields permutations of in. The returned iterator reorders in in-place. Callers should not retain in or slices from the iterator, Or should explicitly clone yielded values.
func ReduceGroup ¶
func ReduceGroup[K comparable, V, Sum any](seq iter.Seq2[K, V], reducer func(accumulator Sum, current V) Sum, initial Sum) map[K]Sum
func RunningReduce ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.