On Thu, Dec 6, 2012 at 10:43 AM, Intransition <[email protected]> wrote: > Shouldn't this work? > > [].concat("abc".chars) > > Seems extraneous that one would have to do: > > [].concat("abc".chars.to_a)
Then do irb(main):013:0> ["foo"].push(*"abc".chars) => ["foo", "a", "b", "c"] Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
