collapseos/blk/155

6 lines
149 B
Plaintext
Raw Normal View History

2020-04-29 21:52:18 -04:00
: FILL ( a n b -- )
SWAP 2 PICK + ( a b a+n ) ROT ( b a+n a ) DO ( b )
DUP I C!
LOOP DROP ;
: ALLOT0 ( n -- ) H@ OVER 0 FILL ALLOT ;