group multimethod

Methods

group(e:Eachable1, cb:Fun) Source: stdlib.ngs:2732
Group items from e by key returned by cb

Returns

Hash with Arr values

Example

["ab", "ac", "ba", "bc", "bd"].group(F(x) x[0])  # {a=[ab,ac], b=[ba,bc,bd]}