blob: c3d5d7b5e77be69e8f2b66878ceea95fea66e19a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/guile \
-s
!#
(use-modules (ice-9 format))
(begin
;; Supurflous begin block here to make sourcing into geiser easier.
(setenv "LD_LIBRARY_PATH" (getcwd))
(load-extension "libguile-calendar" "init_calendar")
(define v (make-calendar "cal")))
(do ((i 0 (1+ i)))
((>= i (calendar-size v)))
(format #t "~3d | ~a~%"
i (calendar-get-attr v i "summary")))
|