Apply a callback to an array: Difference between revisions

Content added Content deleted
(→‎{{header|Erlang}}: -- Added Euphoria code + explanation)
m (→‎Icon and Unicon: header simplification)
Line 580: Line 580:
amap square values</lang>
amap square values</lang>


== Icon and Unicon ==
=={{header|Icon}} and {{header|Unicon}}==
{{works with|Unicon}}
==={{header|Icon}}===
<lang icon>procedure main()
<lang icon>procedure main()
local lst
local lst
Line 591: Line 591:
return p(" -> ", arg)
return p(" -> ", 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}}==