From: Shai Rosenfeld Date: 2007-08-02T22:17:21+09:00 Subject: Re: sytnax Phlip wrote: > Shai Rosenfeld wrote: > >> ..quick reply (didn't last a minute) >> :) >> >> thanks. > > Or... > > var = { 1 => 'one', 2 => 'two', 3 => 'three' }.fetch(number, 'else') nice! :) any lead to which one is faster? -- Posted via http://www.ruby-forum.com/.