mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
(stream-for-each-many): Correction, should recurse into
itself, not stream-for-each-one.
This commit is contained in:
parent
464ee095ff
commit
f749e803fd
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
;;;; streams.scm --- general lazy streams
|
||||
;;;; -*- Scheme -*-
|
||||
|
||||
;;;; Copyright (C) 1999, 2001 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 1999, 2001, 2004 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -190,7 +190,7 @@ If STREAM has infinite length this procedure will not terminate."
|
|||
(if (not (or-map stream-null? streams))
|
||||
(begin
|
||||
(apply f (map stream-car streams))
|
||||
(stream-for-each-one f (map stream-cdr streams)))))
|
||||
(stream-for-each-many f (map stream-cdr streams)))))
|
||||
|
||||
(define (stream-map f stream . rest)
|
||||
"Returns a newly allocated stream, each element being the result of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue