Last active
May 27, 2017 14:05
-
-
Save deque-blog/4aa34d744e963054a47d1ea99d214f51 to your computer and use it in GitHub Desktop.
This file contains 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
(defn fibo-recur-java-bigint | |
[^long n] | |
(loop [curr (BigInteger/valueOf 0) | |
next (BigInteger/valueOf 1) | |
n n] | |
(if-not (zero? n) | |
(recur next (.add curr next) (dec n)) | |
curr))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment