Function comb_with_rep

Source
pub fn comb_with_rep(n: usize, r: usize) -> impl Iterator<Item = Vec<usize>>
Expand description

n 個の集合から重複を許して r 個取り出すときの組合せを列挙する.