Versions in this module Expand all Collapse all v0 v0.1.0 Jan 1, 2024 Changes in this version + func Find[T any](i *Iterator[T], f func(T) bool) (T, bool) + func Max[T cmp.Ordered](i *Iterator[T]) T + func Min[T cmp.Ordered](i *Iterator[T]) T + func Sum[T Summable](i *Iterator[T]) T + type AllocationOption func(options *allocOptions) + func WithPrealloc(prealloc int) AllocationOption + type Enumeration Pair[T, int] + func (p Enumeration[T]) Unpack() (T, int) + type Iterator struct + func Batched[T any](i *Iterator[T], batchSize int) *Iterator[[]T] + func Chain[T any](iters ...*Iterator[T]) *Iterator[T] + func Cycle[T any](i *Iterator[T], opts ...AllocationOption) *Iterator[T] + func Enumerate[T any](i *Iterator[T]) *Iterator[Enumeration[T]] + func Map[T, U any](i *Iterator[T], mapper func(T) U) *Iterator[U] + func NewAsciiIterator(s string) *Iterator[byte] + func NewChanIterator[T any](ch <-chan T) *Iterator[T] + func NewMapIterator[K comparable, V any](m map[K]V) *Iterator[Pair[K, V]] + func NewMapKeysIterator[K comparable, V any](m map[K]V) *Iterator[K] + func NewMapValuesIterator[K comparable, V any](m map[K]V) *Iterator[V] + func NewSliceIterator[S ~[]T, T any](s S) *Iterator[T] + func NewUTF8Iterator(s string) *Iterator[rune] + func New[T any](f func() (T, bool)) *Iterator[T] + func Repeat[T any](elem T) *Iterator[T] + func Zip[T, U any](t *Iterator[T], u *Iterator[U]) *Iterator[Pair[T, U]] + func (i *Iterator[T]) All(f func(T) bool) bool + func (i *Iterator[T]) Any(f func(T) bool) bool + func (i *Iterator[T]) Collect(opts ...AllocationOption) []T + func (i *Iterator[T]) Count() int + func (i *Iterator[T]) Drop(n int) int + func (i *Iterator[T]) Elem() T + func (i *Iterator[T]) Filter(f func(T) bool) *Iterator[T] + func (i *Iterator[T]) Limit(size int) *Iterator[T] + func (i *Iterator[T]) Max(f func(T, T) int) T + func (i *Iterator[T]) Next() bool + func (i *Iterator[T]) Range(f func(T) bool) + func (i *Iterator[T]) Reduce(acc T, f func(acc T, elem T) T) T + func (i *Iterator[T]) WithStep(step int) *Iterator[T] + type Pair struct + First T + Second U + func (p Pair[T, U]) Unpack() (T, U) + type Summable interface