Documentation
¶
Index ¶
- func Batch[T any](it iter.Seq[T], n int) iter.Seq[[]T]
- func FilterKV[K, V comparable](i iter.Seq2[K, V], keep func(K, V) bool) iter.Seq2[K, V]
- func FromFile[T any](path string, parse func(io.Reader) iter.Seq[T]) iter.Seq[T]
- func MergeKV[K comparable, V any](is ...iter.Seq2[K, V]) iter.Seq2[K, V]
- func MergeOrdered[T any](cmp func(T, T) bool, iters ...iter.Seq[T]) iter.Seq[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Batch ¶ added in v0.3.0
Batch iterator into groups of n elements. Returned slices is reused between iterators. If caller needs a copy, caller should copy himself.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.