68dd800bd1
This duplicated feature existed because of bootstrapping issues with LIT", but again, with careful threading, we can clean things up. We can now have a proper "Collapse OS" prompt :)
10 lines
203 B
Plaintext
10 lines
203 B
Plaintext
: '? WORD FIND ;
|
|
: ' '? NOT IF (wnf) THEN ;
|
|
: ROLL
|
|
?DUP NOT IF EXIT THEN
|
|
1+ DUP PICK ( n val )
|
|
SWAP 2 * (roll) ( val )
|
|
NIP ;
|
|
: 2OVER 3 PICK 3 PICK ;
|
|
: 2SWAP 3 ROLL 3 ROLL ;
|