Created
March 12, 2012 14:40
-
-
Save faermanj/2022367 to your computer and use it in GitHub Desktop.
Testando Gist
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
object FiboFunc { | |
val fibs:Stream[BigInt] = | |
0 #:: 1 #:: (fibs zip fibs.tail).map{ case (a,b) => a+b } | |
def main(args: Array[String]) = println(fibs(1000)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment