Minor simplification in APPLY-TO-DIR-STREAM.
This commit is contained in:
parent
c73875d993
commit
1ea1d29a99
|
@ -129,14 +129,13 @@
|
||||||
; '()))
|
; '()))
|
||||||
|
|
||||||
(define (apply-to-dir-stream stream-f)
|
(define (apply-to-dir-stream stream-f)
|
||||||
(define (f ds file-f dir-f)
|
(lambda (ds file-f dir-f)
|
||||||
(make-dir-stream
|
(make-dir-stream
|
||||||
(dir-f (dir-stream-info ds))
|
(dir-f (dir-stream-info ds))
|
||||||
(stream-f file-f (dir-stream-files-stream ds))
|
(stream-f file-f (dir-stream-files-stream ds))
|
||||||
(stream-f (lambda (sub-ds)
|
(stream-f (lambda (sub-ds)
|
||||||
(f sub-ds file-f dir-f))
|
(f sub-ds file-f dir-f))
|
||||||
(dir-stream-subdir-stream ds))))
|
(dir-stream-subdir-stream ds)))))
|
||||||
f)
|
|
||||||
|
|
||||||
(define dir-stream-map (apply-to-dir-stream stream-map))
|
(define dir-stream-map (apply-to-dir-stream stream-map))
|
||||||
(define dir-stream-filter-map (apply-to-dir-stream stream-filter-map))
|
(define dir-stream-filter-map (apply-to-dir-stream stream-filter-map))
|
||||||
|
|
Loading…
Reference in New Issue