Higher-order functions: Difference between revisions
Content added Content deleted
(Nimrod -> Nim) |
|||
Line 1,548: | Line 1,548: | ||
computeit2(@exp, "sin", pi/3)</lang> |
computeit2(@exp, "sin", pi/3)</lang> |
||
=={{header|Oforth}}== |
|||
If you add # before a function or method name you push the function object on the stack (instead of performing the function). This allows to pass functions to other functions, as aby other object. |
|||
<lang Oforth>[1, 2, 3, 4, 5 ] map(#++)</lang> |
|||
=={{header|ooRexx}}== |
=={{header|ooRexx}}== |