Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterableAsSlice ¶
func IterableAsSlice(it Iterable) (ret []interface{})
func IteratorAsSlice ¶
func IteratorAsSlice(it Iterator) (ret []interface{})
func NewIterator ¶
func NewIterator(it Iterable) (ret *iterator)
Types ¶
type Iterator ¶
type Iterator interface { // Advances to the next value. Returns false if there are no more values. // Must be called before the first value. Next() bool // Returns the current value. Should panic when the iterator is in an // invalid state. Value() interface{} // Ceases iteration prematurely. This should occur implicitly if Next // returns false. Stop() }
func GroupBy ¶
Group by returns an iterator of iterators over the values of the input iterator that consecutively return the same value when input to the key function. Note that repeated calls to each value of the GroupBy Iterator does not return a new iterator over the values for that key.
func SliceIterator ¶
func SliceIterator(a []interface{}) Iterator
func StringIterator ¶
Click to show internal directories.
Click to hide internal directories.