aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-04-05 18:15:05 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2019-04-05 18:15:05 +0200
commit2876e0b6dda45b41e1f8d88b748b30fe3c69e971 (patch)
tree4cd63a87e91f22472d3c07160d4a28d9ac849911 /module
parentAdd enumerate and map-each. (diff)
downloadcalp-2876e0b6dda45b41e1f8d88b748b30fe3c69e971.tar.gz
calp-2876e0b6dda45b41e1f8d88b748b30fe3c69e971.tar.xz
Add extra case to let*.
Diffstat (limited to 'module')
-rw-r--r--module/util.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/util.scm b/module/util.scm
index bf7d746d..1a7c5471 100644
--- a/module/util.scm
+++ b/module/util.scm
@@ -123,6 +123,11 @@
(lambda (k k* ...)
(let* (rest ...)
body ...)))]
+
+ ;; Declare variable without a value (actuall #f).
+ ;; Useful for inner mutation.
+ [(_ (v rest ...) body ...)
+ (let* ((v #f) rest ...) body ...)]
))
(define (improper->proper-list lst len)