Apply a callback to an array: Difference between revisions

Content added Content deleted
m (Unicon/Icon consistency 2)
m (Unicon/Icon consistency 2)
Line 524: Line 524:
amap square values</lang>
amap square values</lang>


=={{header|Icon}}==
== Icon and Unicon ==
==={{header|Icon}}===
<lang icon>procedure main()
<lang icon>procedure main()
local lst
local lst
Line 534: Line 535:
write("->", arg)
write("->", arg)
end</lang>
end</lang>
==={{header|Unicon}}===
This Icon solution works in Unicon. A solution that uses Unicon extensions has not been provided.


=={{header|IDL}}==
=={{header|IDL}}==