From: Tobias Reif Date: 2002-02-07T19:56:07+09:00 Subject: Re: shuffle (all possible sequences) SHULTZ,BARRY (HP-Israel,ex1) wrote: > Hi, > Your solution will test true ( 0, in your case ) > for "bbb".consists_of("abc"). Is that what you want? No :| > Here's a different solution that will only return true if > the two words have the exact same length and the > exact same letters: > > def consists_of? (other) > a = self.split(//) > b = other.split(//) > a.sort == b.sort > end Thanks! Tobi -- * peace&love. * http://www.pinkjuice.com/