Collection Builtins

Sloplang's rich standard library for working with lists, sets, and maps.

Aggregation functions reduce a collection to a single value.

Loading WASM...

`fold` is the general-purpose reducer. It takes an initial value and a function of `(accumulator, element)`.

Loading WASM...

`group_by` groups elements by a key function, returning `[[key, [items]], ...]`. Combine with `map` for powerful aggregations.

Loading WASM...

Sets support union (`+`), intersection (`&`), and symmetric difference (`^`).

Loading WASM...

You are not logged in.