On 22/06/2012, at 7:58 PM, Lars H. [email protected]
wrote:
c.flat_map {|run| run[:list]}
Excellent. Never heard of it.
Henry
On 22/06/2012, at 7:58 PM, Lars H. [email protected]
wrote:
c.flat_map {|run| run[:list]}
Excellent. Never heard of it.
Henry
On 06/22/2012 01:30 AM, Henry M. wrote:
I always cringe when I see it but I haven’t found an alternative that is
as clear and concise.
collect and flatten looks ugly. I’d love to be able to do…c.collect {|run| *run[:list]}
c.flat_map {|run| run[:list]}
On Jun 22, 2012 3:59 AM, “Lars H.” [email protected]
wrote:
c.flat_map {|run| run[:list]}
Dude. If I knew that one I’d forgotten it. Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs