From: Tobias Reif Date: 2002-02-07T18:43:58+09:00 Subject: Re: shuffle (all possible sequences) I wrote: > I need to get an array of all possible sequences. > > For example for > "abc".all_sequences > , I'd like to get > ["abc","acb","bac", "bca", "cab", "cba"] I'm sorry; it would be way better to have a boolean method, like: "abc".consists_of?("abc") # -> true "acb".consists_of?("abc") # -> true "bac".consists_of?("abc") # -> true "bca".consists_of?("abc") # -> true And then, how can I say word_list = ['foo', 'bca'] word_list.include? word_consisting_of('abc') # => true TIA, Tobi -- * peace&love. * http://www.pinkjuice.com/