Created
March 25, 2015 09:51
-
-
Save ara-ta3/2210c9c49c71f8fd2b6a 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
def fibFrom(a:Long, b:Long): Stream[Long] = a #:: fibFrom(b, a+b) | |
println(fibFrom(0l, 1l).take(50).toList) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment