summaryrefslogtreecommitdiffstats
path: root/priorque.scm
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:26 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:26 -0800
commitf24b9140d6f74804d5599ec225717d38ca443813 (patch)
tree0da952f1a5a7c0eacfc05c296766523e32c05fe2 /priorque.scm
parent8ffbc2df0fde83082610149d24e594c1cd879f4a (diff)
downloadslib-f24b9140d6f74804d5599ec225717d38ca443813.tar.gz
slib-f24b9140d6f74804d5599ec225717d38ca443813.zip
Import Upstream version 2c0upstream/2c0
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))))