Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

group_map

Sequence.group_map

group the elements of this sequence by a key of type and applies function f to all elements

example: group characters by category and add underscores around each character


=> {(digit => [_1_, _4_]), (letter => [_A_, _b_, _X_]), (other => [_?_])}

Type Parameters

type of the keys
type of the values in the result
0.095dev (GIT hash c7967cd19e1ef640f4fa3d483cf963853644b34e)
last changed: 2026-04-21