permutation() and combination()
make it possible to implement a program like follows.
2, 3.permutation(2) {|elems| } 2, 3.combination(2) {|elems| }
make it possible to implement a program like follows.
2, 3.permutation(2) {|elems| } 2, 3.combination(2) {|elems| }