[Skip To Content]
Where procrastination lives...
main = print( fib 10 )fib :: Int -> Intfib( 0 ) = 0fib( 1 ) = 1fib( x ) = fib( x - 1 ) + fib( x - 2 )
My first Haskell program! Looks very like the definition on Wikipedia.
Posted in Code, Haskell • 06.06.07 • #
29degrees Code DataVisualisation Design Economics Emulators Funny Games Geek Geography Haskell Image LogicPuzzle Music OSX Other Perl Personal PHP Politics Quote Rails Ruby Science Soapbox Software Subversion Technology TextMate Toy Unix Useability Video Web