Skip to content
Timothy Hewitt edited this page Apr 10, 2015 · 2 revisions

A series of random examples.

###Factorial### (fac { ((n swap) def) # name the top (and only) argument n # (n ((n 1 sub) fac) mul) # n! = n*(n-1)! = (n ((n 1 -) !) *) # } def) # bind the code literal # ((4 fac) out) # execute new function and output value #

Clone this wiki locally