Documentation ¶
Overview ¶
Package iter implement a generic Iterator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator[T any] interface { // Next checks whether if the iteration has more elements and // returns the next one if exists. Next() (T, bool) }
An Iterator is a stream of items of some type.
func Flatten ¶
Flatten applies a function to all items of the specified iterator, returning an iterator for each item. The resulting iterators are then concatenated into a single iterator.
Click to show internal directories.
Click to hide internal directories.