diff options
author | Ben Sima <ben@bsima.me> | 2020-05-06 14:26:23 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-05-06 14:26:23 -0700 |
commit | 2c18630e5fb28b428f409f8c4c900bc220d12b3f (patch) | |
tree | 8edc9e1392d2c84e72279781abd415c1d43717bc | |
parent | 4516330d7bdf1819b7d22bbd9bb2b101cb53f97f (diff) |
Fix /. macro and import
-rw-r--r-- | Alpha/Core.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Alpha/Core.scm b/Alpha/Core.scm index 124081d..9aecc0e 100644 --- a/Alpha/Core.scm +++ b/Alpha/Core.scm @@ -2,7 +2,7 @@ #:use-module ((ice-9 format)) #:use-module ((system vm program)) #:use-module ((ice-9 rdelim) #:select (read-line)) - #:use-module ((srfi srfi-1) #:select any) + #:use-module ((srfi srfi-1) #:select (any)) #:export (fmt printf pr prn first ffirst second rest last butlast true? false? nil nil? some? empty? @@ -156,6 +156,8 @@ (syntax-rules () [(/. a b) (lambda (a) b)] + [(/. a ... b) + (lambda (a ...) b)] [(/. a ... (b ...)) (lambda (a ...) (b ...))])) |