Get the next permutation(s)/combination(s) for a iterator
getnext(I, d = 1, drop = TRUE)
a permutation/combination iterator
number of permutation(s)/combination(s) wanted, default to 1
if d
is 1, drop simplify to vector if possible, default to TRUE
.
next d
permutation(s)/combination(s) sequence for the iterator I