Clojure equivalent of python int.from_bytes(byteorder='big')
<p>The Python built in method <code>int.from_bytes()</code> returns the integer represented by the given array of bytes. I wanted know the Clojure equivalent of such method or similar methods in Clojure.</p>

<p>You could use java's <a href="https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html#BigInteger(byte[])" rel="nofollow">java's BigInteger</a> directly:</p>

<pre><code>(BigInteger. (byte-array [1 2 3])) 
=&gt; 66051
</code></pre>

<p>Since clojure natively supports big numbers, you could use it seamlessly with clojure's arithmetics:</p>

<pre><code>(def b (BigInteger. (byte-array [1 2 3])))
(+ b 23)
=&gt; 66074N
</code></pre>

python clojure