Anonymous user
Apply a callback to an array: Difference between revisions
→{{header|Icon}}: fixed to pass procedure name for application
(→{{header|Ruby}}: ++ sather) |
(→{{header|Icon}}: fixed to pass procedure name for application) |
||
Line 529:
local lst
lst := [10, 20, 30, 40]
every callback(write,!lst)
end
procedure callback(p,arg)
end</lang>
==={{header|Unicon}}===
This Icon solution works in Unicon. A solution that uses Unicon extensions has not been provided.
|