Functions - Dataview#maparray-func

map(array, func)

Applies the function to each element in the array, returning a list of the mapped results.

map([1, 2, 3], (x) => x + 2) = [3, 4, 5]
map(["yes", "no"], (x) => x + "?") = ["yes?", "no?"]

Printed 2026-06-28.

(echo:: @ )