aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-19 02:23:21 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-19 02:23:21 +0100
commit439adfa68eec817e6744ce95bb3ebd469e83fb5c (patch)
treeedd511387f928d4e408b9a4ee3af4b194069b3bb /module
parentAdd with-streams macro. (diff)
downloadcalp-439adfa68eec817e6744ce95bb3ebd469e83fb5c.tar.gz
calp-439adfa68eec817e6744ce95bb3ebd469e83fb5c.tar.xz
Update html code to use with-streams.
Diffstat (limited to 'module')
-rw-r--r--module/output/html.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index fbc4728a..bb01b6cd 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -401,7 +401,9 @@
(with-output-to-file fname
(lambda () (html-generate calendars events start-date end-date render-calendar))))])
(let ((ms (month-stream start-date)))
- (stream-take
- count (stream-zip
- ms (stream-map (lambda (d) (date- d (date day: 1))) ; last in month
- (stream-cdr ms)))))))
+ (with-streams
+ (take count
+ (zip ms
+ (map (cut date- <> (date day: 1)) ; last in month
+ (cdr ms))))))))
+