summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-04-15 10:38:43 +0000
committerRich Hickey <richhickey@gmail.com>2008-04-15 10:38:43 +0000
commit961296253c5afdcde87e7793ecc960de60c48048 (patch)
treecb402602f7b2452ea1fd038e1584ced2b3a10511
parent51859f1b6f67bf10174b4008251ac5ed5428e0e6 (diff)
bit-nand back to bit-and-not
-rw-r--r--src/boot.clj12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/boot.clj b/src/boot.clj
index d4aac8e6..01ae3168 100644
--- a/src/boot.clj
+++ b/src/boot.clj
@@ -618,7 +618,7 @@
"Bitwise exclusive or"
[x y] (. clojure.lang.Numbers xor x y))
-(defn bit-nand
+(defn bit-and-not
"Bitwise and with complement"
[x y] (. clojure.lang.Numbers andNot x y))
@@ -1473,6 +1473,16 @@ not-every? (comp not every?))
{:tag Boolean}
[x] (if x true false))
+(defn bigint
+ "Coerce to BigInteger"
+ {:tag BigInteger}
+ [x] (BigInteger.valueOf x))
+
+(defn bigdec
+ "Coerce to BigDecimal"
+ {:tag BigDecimal}
+ [x] (BigDecimal.valueOf x))
+
(import '(java.lang.reflect Array))
(defn alength