heaps: whoops, this was an error.
parent
6f1e819e04
commit
793fa7baeb
|
@ -181,7 +181,7 @@ M: heap heap-pop ( heap -- value key )
|
||||||
|
|
||||||
: heap-pop-all ( heap -- alist )
|
: heap-pop-all ( heap -- alist )
|
||||||
[ dup heap-empty? not ]
|
[ dup heap-empty? not ]
|
||||||
[ [ heap-pop ] keep 2array ]
|
[ dup heap-pop swap 2array ]
|
||||||
produce nip ;
|
produce nip ;
|
||||||
|
|
||||||
ERROR: not-a-heap obj ;
|
ERROR: not-a-heap obj ;
|
||||||
|
|
Loading…
Reference in New Issue