IteratorCollection

IteratorCollection

Reversible Iterator

Constructor

new IteratorCollection(data, next, has_next) → {Iterator}

Source:
See:
  • new_iter_collection
Parameters:
Name Type Description
data Any
next Method()
has_next Method()
Returns:
  • iterator struct
Type
Iterator

Extends

Methods

(static) get(key) → {Iterator}

Source:

returns element by key

Parameters:
Name Type Description
key Any
Returns:
Type
Iterator

(static) len() → {Iterator}

Source:

returns amount of elements in iterable

Returns:
Type
Iterator

(static) reverse() → {Iterator}

Source:

reverses iterator

Returns:
Type
Iterator