added nand, nor, and implies to racket/bool
original commit: 4b2f78477a2f6144044fc2645750f07be923d85d
This commit is contained in:
parent
0bc53ba416
commit
b2faf6534a
|
@ -162,14 +162,6 @@
|
||||||
[(t a ...) (raise-syntax-error #f "invalid clause" stx s)]))
|
[(t a ...) (raise-syntax-error #f "invalid clause" stx s)]))
|
||||||
(syntax->list (syntax (something ...))))]))
|
(syntax->list (syntax (something ...))))]))
|
||||||
|
|
||||||
(define-syntax (nor stx)
|
|
||||||
(syntax-case stx ()
|
|
||||||
[(_ expr ...) (syntax/loc stx (not (or expr ...)))]))
|
|
||||||
|
|
||||||
(define-syntax (nand stx)
|
|
||||||
(syntax-case stx ()
|
|
||||||
[(_ expr ...) (syntax/loc stx (not (and expr ...)))]))
|
|
||||||
|
|
||||||
(define-syntax (let+ stx)
|
(define-syntax (let+ stx)
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
[(_ [clause ...] body1 body ...)
|
[(_ [clause ...] body1 body ...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user