Created
May 1, 2014 14:09
-
-
Save aamedina/cc392e6206dfef3094ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defmethod native-size clojure.lang.BigInt | |
| "Determine the number of bits necessary to represent an integer of arbitrary precision." | |
| [n] | |
| (count (take-while pos? (iterate #(quot % 2) n)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment