(rontolisp) docs
← Maps, sets and vectors

amap

(amap array index result expr)

Maps expr across array by index: evaluates the array once, clones it, sets each element of the clone to the value expr answers, and answers the clone. index names the loop's index and result the clone; both stay local to the form. An array here is a vector, so the answer prints as one.