Content deleted Content added
m Standard headings &/or gen fixes. |
use multiplication, to connect with the previous examples |
||
Line 33:
DEFINE square == dup * .
To explain: In Joy, everything is a function that takes a [[stack (data structure)|stack]] as an argument and returns a stack as a result. For instance, the number 5 is not, as it might appear to be, an integer constant, but instead a short program that pushes the number 5 onto the stack. The
<pre>
|