summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-08-06 20:35:28 +0000
committerRich Hickey <richhickey@gmail.com>2008-08-06 20:35:28 +0000
commitc4d6cb54b923f71bf80755ccb7fbbc62d0891a0e (patch)
tree3c9e9cfed00c27b055b210edb993e452ed9ead43
parent05e3347604a3f7d192c6256624665af3a611f66b (diff)
added unary support for =, not=, none=
-rw-r--r--src/clj/clojure/boot.clj5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clj/clojure/boot.clj b/src/clj/clojure/boot.clj
index 893db427..2ef57acb 100644
--- a/src/clj/clojure/boot.clj
+++ b/src/clj/clojure/boot.clj
@@ -413,6 +413,7 @@
{:tag Boolean
:inline (fn [x y] `(. clojure.lang.Util equal ~x ~y))
:inline-arities #{2}}
+ ([x] true)
([x y] (. clojure.lang.Util (equal x y)))
([x y & more]
(if (= x y)
@@ -424,6 +425,7 @@
(defn not=
"Same as (not (= obj1 obj2))"
{:tag Boolean}
+ ([x] false)
([x y] (not (= x y)))
([x y & more]
(not (apply = x y more))))
@@ -2875,8 +2877,9 @@ not-every? (comp not every?))
(defn none=
- "Returns true if none of the arguments are equal"
+ "Returns true if no two of the arguments are equal"
{:tag Boolean}
+ ([x] true)
([x y] (not (= x y)))
([x y & more]
(if (not= x y)