r
-length combination on self (in same order) with repeated elements.See CartesianCollection
for details.
FIXME: Cannot be used if RTA is enabled. So niti
or --erasure
only.
# All `r`-length combination on self (in same order) with repeated elements.
#
# See `CartesianCollection` for details.
#
# FIXME: Cannot be used if RTA is enabled. So `niti` or `--erasure` only.
fun combinations_with_replacement(r: Int): Collection[SequenceRead[E]]
do
var res = new CombinationCollection[E](self, r)
res.are_sorted = true
res.are_unique = false
return res
end
lib/combinations/combinations.nit:62,2--73,4