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.
git clone git://github.com/Yonaba/Moses.git
- zip: 1.5.1 (latest stable) | current | all
- tarball: 1.5.1 (latestt stable) | current | all
luarocks install moses
moonrocks install moses
or :
luarocks install --server=http://rocks.moonscript.org/manifests/Yonaba moses
Put the file moses.lua inside your project folder and call it using require command.
Note: the full source moses.lua is quite heavy (~63 kiB). You can alternatively use the minified version (~20 kiB).
Find a complete set of code examples in tutorial.md
- Available in HTML-format for download : see doc.
- Read it in your browser : see online doc
- Jeremy Ashkenas, for the amazing Underscore.js
- Marcus Irven's and JTArchie's 1-to-1 ports that also inspired this
- Matthew Rocklin's Toolz from which I borrowed some ideas
- LDoc used to generate the current HTML documentation.
Spec tests have been included.
Run them using Telescope with the following command from the root folder:
tsc -f spec/*
This work is under MIT-LICENSE
Copyright (c) 2012-2017 Roland Yonaba.
See LICENSE.