A Lua utility-belt library for functional programming. It complements the built-in Lua table library, making easier
operations on arrays, lists, collections.
Moses was deeply inspired by Underscore.js.
Download & Installation
Bash
git clone git://github.com/Yonaba/Moses.gitArchive
- zip: latest stable 1.4.0 | current | all
- tarball: latest stable 1.4.0 | current | all
LuaRocks
luarocks install moses
MoonRocks
moonrocks install mosesor :
luarocks install --server=http://rocks.moonscript.org/manifests/Yonaba mosesUsage
Put the file moses.lua inside your project folder and call it using require command.
Note: the full source moses.lua is quite heavy (~59 kiB). You can alternatively use the minified version (~17.5 kiB).
Tutorial
Find a complete set of code examples in tutorial.md
Documentation
- Available in HTML-format for download : see doc.
- Read it in your browser : see online doc
Credits and Acknowledgement
- Jeremy Ashkenas, for the amazing Underscore.js
- Marcus Irven's and JTArchie's 1-to-1 ports that also inspired this.
- LDoc (from Steve Donovan) used to generate the current HTML documentation.
Specification
Spec tests have been included.
Run them using Telescope with the following command from the root folder:
tsc -f spec/*License
This work is under MIT-LICENSE
Copyright (c) 2012-2014 Roland Yonaba.
See LICENSE.


