# group Group list elements by a key function. ## Syntax
[group $list { key-expression }]
## Examples
set items @{
    %{ name "a" type "x" }
    %{ name "b" type "y" }
    %{ name "c" type "x" }
}
[group $items { $it~type }]
# %{ "x" @{ ... } "y" @{ ... } }
## Returns Map of key → list of elements with that key. ## See Also `map`, `filter`, `reduce`, `partition`