CDSoft / lua-fibonacci

Super fast recursive Fibonacci implementation in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Super fast recursive Fibonacci implementation in LuaX

The Fibonacci sequence is a classical hello-world application for functional programming. The challenge here is to get a fast implementation. We will first show two classical implementations: the trivial recursive definition that is very slow and the iterative version that is slightly faster.

And a third one that is blazing fast.

So here is my own version...

See also an implementation in Haskell: https://github.com/CDSoft/haskell-fibonacci

About

Super fast recursive Fibonacci implementation in Lua

License:GNU General Public License v3.0


Languages

Language:Typst 73.7%Language:Lua 26.3%