Skip to content
Snippets Groups Projects
fibonacci.kal 156 B
Newer Older
  • Learn to ignore specific revisions
  • # Compute the x'th fibonacci number.
    def fib(x)
      if x < 3 then
        1
      else
        fib(x-1)+fib(x-2)
    
    # This expression will compute the 40th number.
    fib(40)