好きな文字でのsucc的配列のなにか
ううう、思いつかなかったんだよ....
str = 'abcdefghijklmnopqrstuvwxyz0123456789'.scan(/./) max_length = 2 (1..max_length).map{|len| str.repeated_permutation(len).to_a.map(&:join)}.flatten
ううう、思いつかなかったんだよ....
str = 'abcdefghijklmnopqrstuvwxyz0123456789'.scan(/./) max_length = 2 (1..max_length).map{|len| str.repeated_permutation(len).to_a.map(&:join)}.flatten