Subject: Re: make an exmpersion simpler
From: Tor Erik Linnerud <tel jklm.no>
Date: Fri, 20 Nov 2009 19:37:58 +0900
References: 350975350996351035
In-reply-to: 351035
Michal Burak wrote:
> i wan add all elements from list1 to list2
That is not what your code does.
This should work:
list2.concat(list1 || [])
Tor Erik
http://tel.jklm.no/
--
Posted via http://www.ruby-forum.com/.