ANTAREX API

Clava API

LARA API

LARA Common Language API

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

(.lara)
import lara.util.SequentialCombinations;

SequentialCombinations

Constructor

SequentialCombinations

new SequentialCombinations(numElements, upTo)

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

Parameters

numElements: any
upTo: any

Instance Members

getLastSeed

getLastSeed()

Returns

number - the value used to generate the last combination

hasNext

hasNext()

Returns

boolean - true if there are stil combinations to generate

next

next()

Returns

number[] - the next sequence