Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (require (for-syntax syntax/stx))
- (define-syntax (-> stx)
- (syntax-case stx ()
- ((_ x) #'x)
- ((_ x form) (if (stx-list? #'form)
- #`(#,(stx-car #'form) x #,@(stx-cdr #'form))
- #'(form x)))
- ((_ x form . more) #'(-> (-> x form) . more))))
Add Comment
Please, Sign In to add comment