3 ms·
Forth is probably cheating considering it has no restrictions when naming symbols. : 4 5 ; 2 2 + .
by jacketing 3y ago
Forth is probably cheating considering it has no restrictions when naming symbols.
: 4 5 ;
2 2 + .
- jstanley 3y agoDid you try this? This won't work. What you did will make inputting a 4 yield a 5, but it won't change the behaviour of outputting a 4. (And it will only turn an input 4 into a 5 if your interpreter checks for words before checking for numbers which is not universally the case).
- pgeorgi 3y agoTry : + drop drop 5 ;