From: Intransition Date: 2012-12-10T03:02:20+09:00 Subject: Re: Array#concat Enumerator ------=_Part_35_32173456.1355076138495 Content-Type: multipart/alternative; boundary="----=_Part_36_9605139.1355076138495" ------=_Part_36_9605139.1355076138495 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > > > irb(main):013:0> ["foo"].push(*"abc".chars) > => ["foo", "a", "b", "c"] > > A bit beside the point though. I was wondering if #concat should be able to handle an Enumerator. But I didn't know push could take more than one argument, so that's something learned today. Thanks! ------=_Part_36_9605139.1355076138495 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

irb(main):013:0> ["foo"].push(*"abc".chars)
=> ["foo", "a", "b", "c"]


A bit beside the point though. I was wondering if #concat should be able to handle an Enumerator. 

But I didn't know push could take more than one argument, so that's something learned today. Thanks!



------=_Part_36_9605139.1355076138495-- ------=_Part_35_32173456.1355076138495--