flat_map multimethod
Methods
- flat_map(e:Eachable1, mapper:Fun) Source: stdlib.ngs:1435
Map and flatten. Applies mapper to each element of e, collects results, and flattens the results (one level). Example
[2,0,4].flat_map(F(e) Result({ 12 / e}).Box()) # [6, 3] [2,0,4].flat_map(F(e) [1, e*2]) # [1,4, 1,0, 1,8]