diff options
-rw-r--r-- | src/boot.clj | 12 |
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 |