Versions in this module Expand all Collapse all v0 v0.1.0 Feb 24, 2022 Changes in this version + func All(it Iterator[T], pred func(T) bool) bool + func Any(it Iterator[T], pred func(T) bool) bool + func Count(it Iterator[T]) uint + func Equal(first Iterator[T], second Iterator[T]) bool + func EqualBy(first Iterator[T], second Iterator[T], cmp func(T, T) bool) bool + func Fold(it Iterator[T], init B, fn func(B, T) B) B + func ForEach(it Iterator[T], fn func(T)) + func ToSlice(it Iterator[T]) []T + func ToString(it Iterator[rune]) string + type Iterator interface + Next func() Option[T] + func Chain(first Iterator[T], second Iterator[T]) Iterator[T] + func Drop(it Iterator[T], n uint) Iterator[T] + func DropWhile(it Iterator[T], pred func(T) bool) Iterator[T] + func Empty() Iterator[T] + func Filter(it Iterator[T], pred func(T) bool) Iterator[T] + func Flatten(it Iterator[Iterator[T]]) Iterator[T] + func Func(fn func() Option[T]) Iterator[T] + func Fuse(it Iterator[T]) Iterator[T] + func Map(it Iterator[T], fn func(T) R) Iterator[R] + func Once(value T) Iterator[T] + func Range(start, stop, step int) Iterator[int] + func Repeat(value T) Iterator[T] + func Slice(slice []T) Iterator[T] + func String(input string) Iterator[rune] + func Take(it Iterator[T], n uint) Iterator[T] + func TakeWhile(it Iterator[T], pred func(T) bool) Iterator[T] + type Option struct + func Find(it Iterator[T], pred func(T) bool) Option[T] + func MapOption(opt Option[T], fn func(T) R) Option[R] + func None() Option[T] + func Nth(it Iterator[T], n uint) Option[T] + func Some(v T) Option[T] + func (opt Option[T]) IsNone() bool + func (opt Option[T]) IsSome() bool + func (opt Option[T]) Unwrap() T + func (opt Option[T]) UnwrapOr(def T) T + func (opt Option[T]) UnwrapOrElse(fn func() T) T