Versions in this module Expand all Collapse all v0 v0.0.3 Jul 22, 2026 Changes in this version + func CollectToMapFK[T any, T1 comparable](iter Iter[T], fk func(T) T1) map[T1]T + func CollectToMap[T any, T1 comparable, T2 any](iter Iter[T], fkv func(T) (T1, T2)) map[T1]T2 + func Collect[T any](iter Iter[T]) []T + func Consume[T any](iter Iter[T]) + func Count[T any](iter Iter[T]) int + func Equal[E comparable](iter1, iter2 Iter[E]) bool + func FoldZv[T any, B any](iter Iter[T], f func(B, T) B) B + func Fold[T any, B any](iter Iter[T], init B, f func(B, T) B) B + func ForEach[T any](iter Iter[T], f func(T)) + func Last[T any](iter Iter[T]) (T, bool) + func SeqIx[T any](it Iter[T]) iter.Seq2[int, T] + func Seq[T any](it Iter[T]) iter.Seq[T] + type BufIter struct + func (bi *BufIter[T]) Next() (res T, ok bool) + type FieldsIter struct + func (fi *FieldsIter) Next() (string, bool) + type FieldsIterFn struct + func (fi *FieldsIterFn) Next() (string, bool) + type FilterIter struct + func (fit *FilterIter[T]) Next() (T, bool) + type FilterMapIter struct + func (fmit *FilterMapIter[T, U]) Next() (U, bool) + type ISplit struct + func (si *ISplit) Next() (h string, ok bool) + type Iter interface + Next func() (T, bool) + func Concat[T any](c ...Iter[T]) Iter[T] + func Empty[T any]() Iter[T] + func Fields(s string) Iter[string] + func FieldsFn(s string, fn func(rune) bool) Iter[string] + func FieldsSet(s string, cutset string) Iter[string] + func FilterMap[T, U any](it Iter[T], mp func(T) (U, bool)) Iter[U] + func Filter[T any](it Iter[T], p func(T) bool) Iter[T] + func Fuse[T any](it Iter[T]) Iter[T] + func Map[T any, U any](it Iter[T], mf func(T) U) Iter[U] + func NewBufIterU[S ~[]T, T any](buf S) Iter[T] + func NewBufIter[T any](buf []T) Iter[T] + func NewLineIter(r io.Reader) Iter[string] + func Once[T any](v T) Iter[T] + func Range(end int) Iter[int] + func ScanZv[T any, U any](it Iter[T], scanfunc func(U, T) U) Iter[U] + func Scan[T any, U any](it Iter[T], init U, scanfunc func(U, T) U) Iter[U] + func SkipUntilInclAlt[T any](it Iter[T], p func(T) bool) Iter[T] + func SkipUntilIncl[T any](it Iter[T], p func(T) bool) Iter[T] + func SkipUntil[T any](it Iter[T], p func(T) bool) Iter[T] + func SkipWhile[T any](it Iter[T], p func(T) bool) Iter[T] + func Skip[T any](i Iter[T], n int) Iter[T] + func Split(s, sep string) Iter[string] + func Split4(s, sep string) Iter[string] + func SplitIter2(s, sep string) Iter[string] + func SplitIter3(s, sep string) Iter[string] + func StringSplit(s, sep string) Iter[string] + func StringSplit4(s, sep string) Iter[string] + func TakeUntilIncl[T any](it Iter[T], pred func(T) bool) Iter[T] + func TakeUntil[T any](it Iter[T], pred func(T) bool) Iter[T] + func TakeWhile[T any](it Iter[T], p func(T) bool) Iter[T] + func Take[T any](i Iter[T], n int) Iter[T] + func Variadic[T any](v ...T) Iter[T] + type MapIter struct + func (mit *MapIter[T, U]) Next() (U, bool) + type NumIter struct + func NewNumIter(count int) NumIter + func (st *NumIter) NotTake() bool + func (st *NumIter) Skip() bool + type Pred func(T) bool + type PredIter struct + func NewPredIter(pred Pred[int]) PredIter + func (st *PredIter) Skip(e int) bool + func (st *PredIter) SkipUntil(e int) bool + type RangeIter struct + func (t *RangeIter) Next() (int, bool) + type SkipIter struct + func (t *SkipIter[T]) Next() (T, bool) + type SkipUntilIncl3 struct + func (it *SkipUntilIncl3[T]) Next() (T, bool) + func (suit *SkipUntilIncl3[T]) Next2() (T, bool) + func (suit *SkipUntilIncl3[T]) Next3() (T, bool) + type SkipUntilInclT struct + func (suit *SkipUntilInclT[T]) Next() (T, bool) + type SkipWhileIter struct + func (swit *SkipWhileIter[T]) Next() (T, bool) + type SplitIter struct + func (si *SplitIter) Next() (string, bool) + type TakeIter struct + func (t *TakeIter[T]) Next() (T, bool) + type TakeWhileIter struct + func (twit *TakeWhileIter[T]) Next() (T, bool) + func (twit *TakeWhileIter[T]) Next2() (T, bool)