Skip to content

Map

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.

Return the collection where each element has been transformed by the mapping function. With a single collection, equivalent to `[f(x) for x in xs]`. With multiple collections, combines them element-wise (like `zipWith`): `Map(f, xs, ys) = [f(x1, y1), f(x2, y2), …]`, with the length of the shortest input. The mapping function is always the FIRST argument.

Fungrim entry
Map(mapping: (T) any -> U, collection<T>+) -> indexed_collection where T, Uas compute-engine declares it

Domain: Compute engine