From: "Jesús Gabriel y Galán" Date: 2007-10-21T16:59:42+09:00 Subject: Re: combinations listing On 10/21/07, Dirk Traulsen wrote: > Am 21 Oct 2007 um 7:20 hat Jesús Gabriel y Galán geschrieben: > > > It splits every letter of one word, sorts the letters and joins them > > again. Then appends to the array corresponding to the value of the > > sorted letters the actual word. For example, if this were the > > dictionary file: > > > > abc > > acb > > > > for abc: > > word.split('') --> %w{a, b, c} > > Be careful: > p %w(a, b, c) #=> ["a,", "b,", "c"] > p %w(a b c) #=> ["a", "b", "c"] > > When using %w() (=array of tokens) the tokens are separated by spaces. > If you additionally use commas, they will be part of the strings. Yeah, you are right. It was just lazy typing on my part to explain what each part of the program was doing. Thanks for correcting that, Jesus.