Skip to content

Instantly share code, notes, and snippets.

@faermanj
Created March 12, 2012 14:40
Show Gist options
  • Save faermanj/2022367 to your computer and use it in GitHub Desktop.
Save faermanj/2022367 to your computer and use it in GitHub Desktop.
Testando Gist
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