f = require "f"
local fibonacci = function(n, acc)
if isnil(acc) then
acc = 1
f.elif(x <= 1,
f.recur()(x - 1, x * acc)
Building a functional library in Lua seems to be something many newcomers attempt .
There are a few differences, and they'll probably get spelled out in the README when I become satisfied with the overall coverage of the project.
Some libraries give you cons and friends, others give you operators. The feature-list for f.lua is certainly longer than most.
Functions like let and cond simply haven't been in the other libraries I've seen, and tend to be out of scope for them.
Secondly: Lua is incredibly flexible.
It's near-Lisp levels of flexibility, even without going to something like Metalua. Seeing how far I can push it whilst still remaining fairly close to the spirit of Lua is an awesome challenge.
Unfortunately, I'm beginning to hit those barriers. No immutable values unless your assigning to globals, so far as I can tell.  (Though they might make it into f.let, because of the strange way that function works.) A good prettyprint function actually takes a decent amount of code to implement, especially because of self-referencing, and the ability to override __index.
Anyways, I'm happy enough with it, that I thought it was ready for others to play with.