flatMap

inline fun <T, D : Dimension, R> MultiArray<T, D>.flatMap(transform: (T) -> Iterable<R>): D1Array<R>

Returns a flat ndarray of all elements resulting from calling the transform function on each element in this ndarray.