Small functional programming library for lua