Use unless instead of when
This commit is contained in:
parent
085736da27
commit
1381f0b881
@ -39,7 +39,7 @@
|
|||||||
(define (foreach-line thunk)
|
(define (foreach-line thunk)
|
||||||
(let loop ()
|
(let loop ()
|
||||||
(let ((line (get-line (current-input-port))))
|
(let ((line (get-line (current-input-port))))
|
||||||
(when (not (eof-object? line))
|
(unless (eof-object? line)
|
||||||
(display (thunk line))
|
(display (thunk line))
|
||||||
(loop)))))
|
(loop)))))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user