diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2020-02-14 00:12:38 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2020-02-14 00:12:38 +0100 |
commit | 106d832e38e52161441ea33b59418002a5dfda56 (patch) | |
tree | e6f6fffa144f44001c04c2f8ab38c7cbf8b77ec6 /module/vcomponent/group.scm | |
parent | Fix date/-time<. (diff) | |
download | calp-106d832e38e52161441ea33b59418002a5dfda56.tar.gz calp-106d832e38e52161441ea33b59418002a5dfda56.tar.xz |
Move stream-null? in group-stream.
Diffstat (limited to '')
-rw-r--r-- | module/vcomponent/group.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/vcomponent/group.scm b/module/vcomponent/group.scm index cf9a6b70..0cd274d1 100644 --- a/module/vcomponent/group.scm +++ b/module/vcomponent/group.scm @@ -11,10 +11,10 @@ (define-stream (group-stream in-stream) (define (ein? day) (lambda (e) (event-contains? e day))) - (let loop ((days (day-stream (as-date (attr (stream-car in-stream) 'DTSTART)))) - (stream in-stream)) - (if (stream-null? stream) - stream-null + (if (stream-null? in-stream) + stream-null + (let loop ((days (day-stream (as-date (attr (stream-car in-stream) 'DTSTART)))) + (stream in-stream)) (let* ((day (stream-car days)) (tomorow (stream-car (stream-cdr days)))) |