From: Dan Schmidt Date: 2000-12-22T07:10:04+09:00 Subject: [ruby-talk:7919] Re: Next amusing problem: talking integers (was Re: Code sample for improvement) David Alan Black writes: | On Fri, 22 Dec 2000, Dan Schmidt wrote: | | > Stephen White writes: | > | > (If I didn't need an empty initial element, I would have used %w.) | | You could also do: | | %w{ one two three } .unshift '' | | which is faster than splitting on '.'. Yep. I was optimizing for cuteness :) -- http://www.dfan.org