Documentation ¶
Index ¶
- type ChainIter
- type FuncIterator
- type Iter
- func Filter[E any](iter Iter[E], mapper slicendice.FilterFunc[E]) Iter[E]
- func FilterIntoIter[E any](elements []E, mapper slicendice.FilterFunc[E]) Iter[E]
- func Map[E, V any](iter Iter[E], mapper slicendice.MapperFunc[E, V]) Iter[V]
- func MapIntoIter[E, V any](elements []E, mapper slicendice.MapperFunc[E, V]) Iter[V]
- func Take[E any](n int, iter Iter[E]) Iter[E]
- func TakeIntoIter[E any](n int, elements []E) Iter[E]
- type SliceIterator
- type Transform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainIter ¶
type ChainIter[E any] struct { // contains filtered or unexported fields }
This is not in use
func ChainIterators ¶
type FuncIterator ¶
type FuncIterator[E, V any] struct { // contains filtered or unexported fields }
func NewFuncIterator ¶
func NewFuncIterator[E, V any](iter Iter[E], transformer Transform[E, V]) *FuncIterator[E, V]
func (*FuncIterator[E, V]) Next ¶
func (fi *FuncIterator[E, V]) Next() (bool, V)
type Iter ¶
func Filter ¶
func Filter[E any](iter Iter[E], mapper slicendice.FilterFunc[E]) Iter[E]
func FilterIntoIter ¶
func FilterIntoIter[E any](elements []E, mapper slicendice.FilterFunc[E]) Iter[E]
func Map ¶
func Map[E, V any](iter Iter[E], mapper slicendice.MapperFunc[E, V]) Iter[V]
func MapIntoIter ¶
func MapIntoIter[E, V any](elements []E, mapper slicendice.MapperFunc[E, V]) Iter[V]
func TakeIntoIter ¶
type SliceIterator ¶
type SliceIterator[E any] struct { // contains filtered or unexported fields }
func ToSliceIter ¶
func ToSliceIter[E any](elements []E) *SliceIterator[E]
func (*SliceIterator[E]) Next ¶
func (it *SliceIterator[E]) Next() (bool, E)
func (*SliceIterator[E]) Reset ¶
func (it *SliceIterator[E]) Reset()
Click to show internal directories.
Click to hide internal directories.