Versions in this module Expand all Collapse all v0 v0.2.1 May 14, 2022 v0.2.0 May 14, 2022 Changes in this version + func Each(it iterkit.Iterator[T], fn EachFunc[T]) + func EachIndex(it iterkit.Iterator[T], fn EachIndexFunc[T]) + func Filter(it iterkit.Iterator[T], cb FilterFunc[T]) iterkit.Iterator[T] + func Map(it iterkit.Iterator[T], fn MapFn[T, V]) iterkit.Iterator[V] + func Range(stop T, optFuncs ...OptionFunc) iterkit.Iterator[T] + func Runes(v string) iterkit.Iterator[rune] + func Slice(it iterkit.Iterator[T]) (out []T) + func String(it iterkit.Iterator[rune]) string + type EachFunc func(item T) bool + type EachIndexFunc func(i int, item T) bool + type FilterFunc func(element T) bool + type FilterIter struct + func (f *FilterIter[T]) Next() bool + func (f FilterIter[T]) Value() T + type MapFn func(T) V + type MapIterator struct + func (m *MapIterator[T, V]) Next() bool + func (m *MapIterator[T, V]) Value() V + type Option struct + func (o *Option[T]) Set(val T) + func (o Option[T]) IsSome() bool + func (o Option[T]) OrElse(other T) T + type OptionFunc func(opts *RangeOptions) + func WithStart(v int) OptionFunc + func WithStep(v int) OptionFunc + type RangeIter struct + func (r *RangeIter[T]) Next() bool + func (r RangeIter[T]) Value() T + type RangeOptions struct + type StringIter struct + func (s *StringIter) Next() bool + func (s *StringIter) Value() rune