optimized allot
This commit is contained in:
@@ -56,4 +56,4 @@
|
||||
:: range [ [] [ over over < ] dip swap while [ [ over ] dip qpush [ swap 1 + swap ] dip [ over over < ] dip swap ] nip nip ]
|
||||
:: qfor [ dup qlen while [ uncons drop [ [] cons cons ] dip swap dup 0 qget dip uncons drop swap 0 qget dup qlen ] drop drop ]
|
||||
:: for [ next next [ i ] dip swap qfor ]
|
||||
:: allot [ [] swap dup while [ swap 0 swap cons swap 1 - dup ] drop ]
|
||||
:: allot [ [0] swap * ]
|
||||
|
||||
Reference in New Issue
Block a user