Add in-complex-layer?.

original commit: 2a7254a324e6ec68982d3966df04e8c264d89bca
This commit is contained in:
Vincent St-Amour 2011-05-16 18:39:22 -04:00
parent 292433204b
commit d64af4df5d

View File

@ -21,6 +21,9 @@
(and (subtypeof? t -Real)
(not (subtypeof? t -Rat))
(not (subtypeof? t -Flonum))))
(define (in-complex-layer? t)
(and (subtypeof? t -Number)
(not (subtypeof? t -Real))))
(define-syntax-class arith-expr
(pattern (#%plain-app op:arith-op args ...)))