2 ms·
If anyone's interested to see the slide examples but in Factor, I wrote them out: https://programming.dev/comment/6718327 https://programming.dev/comment/67183
by AndyKluger 3y ago
If anyone's interested to see the slide examples but in Factor, I wrote them out:
https://programming.dev/comment/6718327 https://programming.dev/comment/6718327
Here's a bit:
: add1 ( x -- x' ) 1 + ;
: square ( x -- x' ) dup * ;
: double ( x -- x' ) 2 * ;
: demo1 ( -- n )
5
add1
square
double
;