Rename `reduce-reversed' to `reduce-right'.
authorChris Hanson <org/chris-hanson/cph>
Fri, 7 Oct 1988 08:52:36 +0000 (08:52 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 7 Oct 1988 08:52:36 +0000 (08:52 +0000)
v7/src/runtime/list.scm

index d28d8cd46f9cba527cf639b898dedeadbaa34ccc..b8e81ff0fdba6cbb75dc41c2eff9ae17d2851615 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/list.scm,v 14.3 1988/10/06 06:38:35 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/list.scm,v 14.4 1988/10/07 08:52:36 cph Exp $
 
 Copyright (c) 1988 Massachusetts Institute of Technology
 
@@ -326,11 +326,11 @@ MIT in each case. |#
              (result l value)))
        (result list initial))))
 
-(define (reduce-reversed f initial list)
+(define (reduce-right f initial list)
   (let ((result
         (lambda (l value)
           (if (not (null? l))
-              (error "REDUCE-REVERSED: Argument not a list" list))
+              (error "REDUCE-RIGHT: Argument not a list" list))
           value)))
     (if (pair? list)
        (let loop ((value (car list)) (l (cdr list)))