nthPermutationImpl

fnbool nthPermutationImpl(Range)(auto ref Range range, ulong perm) if (isRandomAccessRange!Range && hasLength!Range)

Returns

true in case the permutation worked, false in case perm had

more digits in the factorial number system than range had elements. This case must not occur as this would lead to out of range accesses.