Merge pull request #58 from sjl/master

Rule for (= nil x) -> (nil? x)
This commit is contained in:
Jonas Enlund 2012-11-08 23:38:58 -08:00
commit 453b02afd1
2 changed files with 7 additions and 1 deletions

View file

@ -19,5 +19,9 @@
[(= ?x ?x) true]
[(== ?x ?x) true]
[(zero? 0) true])
[(zero? 0) true]
; nil?
[(= ?x nil) (nil? ?x)]
[(= nil ?x) (nil? ?x)])

View file

@ -14,6 +14,8 @@
'(pos? x) '(> x 0)
'(pos? x) '(<= 1 x)
'(neg? x) '(< x 0)
'(nil? x) '(= nil x)
'(nil? x) '(= x nil)
true '(= x x)
true '(== x x)
true '(zero? 0)))