group_map
Sequence.group_map
group_map(K:property.orderable,B:Any,M:container.Map K (Sequence B),key_f Unary K T,f Unary B T) => M¶[src]
Type Parameters
K:property.orderable¶[src]
type of the keys
M:container.Map K (Sequence B)¶[src]
the type of the map to create
Arguments
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
example: group characters by category and add underscores around each character
=> {(digit => [_1_, _4_]), (letter => [_A_, _b_, _X_]), (other => [_?_])}