aboutsummaryrefslogtreecommitdiffstats
path: root/priorque.scm
diff options
context:
space:
mode:
Diffstat (limited to 'priorque.scm')
-rw-r--r--priorque.scm13
1 files changed, 4 insertions, 9 deletions
diff --git a/priorque.scm b/priorque.scm
index 927ffbe..9002c01 100644
--- a/priorque.scm
+++ b/priorque.scm
@@ -1,5 +1,5 @@
;;;; "priorque.scm" priority queues for Scheme.
-;;; Copyright (C) 1992, 1993 Aubrey Jaffer.
+;;; Copyright (C) 1992, 1993, 1994, 1995, 1997 Aubrey Jaffer.
;
;Permission to copy this software, to redistribute it, and to use it
;for any purpose is granted, subject to the following restrictions and
@@ -131,11 +131,6 @@
(heap-insert! heap #\Q)
(heap-insert! heap #\S)
(heap-insert! heap #\R)
- (print (heap-extract-max! heap))
- (print (heap-extract-max! heap))
- (print (heap-extract-max! heap))
- (print (heap-extract-max! heap))
- (print (heap-extract-max! heap))
- (print (heap-extract-max! heap))
- (print (heap-extract-max! heap))
- (print (heap-extract-max! heap))))
+ (do ((i 7 (+ -1 i)))
+ ((negative? i))
+ (write (heap-extract-max! heap)) (newline))))