Proper tail threading
This commit is contained in:
1 parent
ef8efcb3e0
commit
8bac998a25
1 file changed
+2
-2
@@ -17,8 +17,8 @@
|
||||
(define-syntax ~>>
|
||||
(syntax-rules ()
|
||||
[(_ v) v]
|
||||
[(_ v (fn args ...) more ...) (~> (fn args ... v) more ...)]
|
||||
[(_ v fn more ...) (~> (fn v) more ...)]))
|
||||
[(_ v (fn args ...) more ...) (~>> (fn args ... v) more ...)]
|
||||
[(_ v fn more ...) (~>> (fn v) more ...)]))
|
||||
|
||||
(define-syntax-rule (if-not pred body ...)
|
||||
(if (not pred) body ...))
|
||||
|
||||
Reference in new issue
Block a user