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 9b94ad4b4a4bff2bf2be7d77be2c6e1fd7683c4d)
example: group characters by category and add underscores around each character
=> {(digit => [_1_, _4_]), (letter => [_A_, _b_, _X_]), (other => [_?_])}