2020-05-26 10:34:52 +10:00
|
|
|
: '? WORD FIND ;
|
2020-09-20 08:51:29 +10:00
|
|
|
: ' '? NOT IF (wnf) THEN ;
|
2020-05-26 10:34:52 +10:00
|
|
|
: 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 ;
|