Documentation
¶
Overview ¶
Package sliceit allows for native Go slices to be used with iterators.
Iterator functions:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SliceIterator ¶
type SliceIterator[T any] struct { Data []T // contains filtered or unexported fields }
SliceIterator provides an iterator for slices that conforms to the Iterator protocol.
func (*SliceIterator[T]) Next ¶
func (it *SliceIterator[T]) Next() (ok bool)
func (*SliceIterator[T]) Value ¶
func (it *SliceIterator[T]) Value() T
Click to show internal directories.
Click to hide internal directories.