KADABRA API

LARA API

LARA Common Language API

(.js)
laraImport("lara.iterators.LaraIterator");

(.lara)
import lara.iterators.LaraIterator;

LaraIterator

Constructor

LaraIterator

new LaraIterator()

Base class for iterators in Lara.


Instance Members

getNumElements

getNumElements()

Returns

number - the total number of elements of the iterator, or undefined if it is not possible to calculate.

getNumValuesPerElement

getNumValuesPerElement()

Returns

any - The number of values returned by a call to next(). A value of one means one value, a value greater than one means an array with that amount of values.

getType

getType()

Returns

string - the type of this iterator.

hasNext

hasNext()

Returns

boolean - true if it has another element to return.

jsIterator

jsIterator()

IMPLEMENTED FUNCTIONS


next

next()

Returns

any - the next element.

reset

reset()

Resets the iterator.