Function: getCombinationRank()
getCombinationRank(
combination,offset?):number
Defined in: combinations/rank.ts:81
Get the lexicographic rank of a given combination.
Values are sorted before computing rank, and offset is subtracted from
each value during ranking.
Parameters
combination
Iterable\<number>
The combination to get the lexicographic rank for.
offset?
number = 0
An offset to apply to each value in the combination.
Returns
number
The lexicographic rank of the combination.