KADABRA API

LARA API

LARA Common Language API

(.js)
laraImport("lara.util.Combinations");

(.lara)
import lara.util.Combinations;

Combinations

Constructor

Combinations

new Combinations(elements, combinationSize)

Generates sequential sequences of combinations, according to the given number of elements.

Parameters

elements: any
combinationSize: any

Instance Members

hasNext

hasNext()

Returns

boolean - true if there are stil combinations to generate

next

next()

Returns

elements[] - the next sequence