Higher-order functions: Difference between revisions
m
→{{header|Joy}}
m (→{{header|Joy}}) |
|||
Line 1,800:
This example is taken from V.
Define first as multiplying two numbers on the stack.
<
There will be a warning about overwriting builtin first.
Define second as interpreting the passed quotation on the stack.
<
Pass first enclosed in quotes to second
<syntaxhighlight lang
The program prints 6.
|