diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-04-05 18:15:05 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-04-05 18:15:05 +0200 |
commit | 2876e0b6dda45b41e1f8d88b748b30fe3c69e971 (patch) | |
tree | 4cd63a87e91f22472d3c07160d4a28d9ac849911 /module | |
parent | Add enumerate and map-each. (diff) | |
download | calp-2876e0b6dda45b41e1f8d88b748b30fe3c69e971.tar.gz calp-2876e0b6dda45b41e1f8d88b748b30fe3c69e971.tar.xz |
Add extra case to let*.
Diffstat (limited to '')
-rw-r--r-- | module/util.scm | 5 |
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) |