Array.flatten
flatten
Group: Calculations
Documentation
Transforms an array of arrays into a Vector
of inner elements - removes one layer of nesting from a stack of nested arrays.
Examples
Flatten an array of arrays of numbers.
[[1, 2, 3].to_array, [4, 10].to_array, [].to_array, [0].to_array, [0].to_array].to_array . flatten == [1, 2, 3, 4, 10, 0, 0].to_array