Apply a callback to an array: Difference between revisions

No edit summary
Line 874:
Map(sample, NUMBER(sample), callback);
END Callback.</lang>
 
=={{header|NewLISP}}==
 
<lang NewLISP>> (map (fn (x) (* x x)) '(1 2 3 4))
(1 4 9 16)
</lang>
 
=={{header|Nial}}==
Anonymous user