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