partial_permutation

equals to fact(n) / fact(n-k)

pure nothrow
long
partial_permutation
(
long n
,
long k
)
in { assert (k > 0); assert (n >= k); }
out (res) { assert (res >= 0); }

Meta