UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

23 lines 666 B
/** * Generates sequential sequences of combinations, according to the given number of elements. */ export default class SequentialCombinations { numElements: number; currentValue: number; lastValueUsed: number | undefined; maximumValue: number; constructor(numElements: number, upTo?: number); /** * @returns The value used to generate the last combination */ getLastSeed(): number | undefined; /** * @returns The next sequence */ next(): number[]; /** * @returns True if there are stil combinations to generate */ hasNext(): boolean; } //# sourceMappingURL=SequentialCombinations.d.ts.map