Flowdock
method

collect_concat

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: Enumerable
collect_concat() public

Returns a new array with the concatenated results of running block once for every element in enum.

If no block is given, an enumerator is returned instead.

[[1,2],[3,4]].flat_map {|i| i }   #=> [1, 2, 3, 4]
Show source
Register or log in to add new notes.