Clojure often leaves implementations to the backing platforms, and
Clojurescript probably has no difference in the methods of the different
numerical types.
Java does, so you'd have to fall back on that. Something like:
(defn big-or
[f & r]
(reduce (fn [acc v] (.or acc (biginteger v))) (bigi
Clojure 1.10:
(and 4N 8N (bigint Integer/MAX_VALUE))
=> 2147483647N
(or 4N 8N (bigint Integer/MAX_VALUE))
=> 4N
On Tuesday, May 26, 2020 at 6:39:51 PM UTC+2, Harmon Nine wrote:
>
> Hello.
>
> I noticed a post about this from 2013, so doing a bump.
>
> The bit-wise operators appear to be support
In Clojure, it is probably easiest to just use Java interop, eg:
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigInteger.html#setBit(int)
Alan
On Tue, May 26, 2020 at 9:39 AM Harmon Nine wrote:
> Hello.
>
> I noticed a post about this from 2013, so doing a bump.
>
> Th
Hello.
I noticed a post about this from 2013, so doing a bump.
The bit-wise operators appear to be supported for 'bigint' in
ClojureScript, but not in Clojure. Is support for these operations on
'bigint' in Clojure a future enhancement?
Thanks :)
-- Harmon
--
You received this message becau