lodash inspired library for lua
A functional programming library for lua in respect to the javascript library lodash.
- Install the library using luarocks:
luarocks install lodash
or simply add lodash.lua file from this git repository. - import it like this in to your code
local _ = require 'lodash'
- and then you can use good sort of functions:
_.print(_.map({1, 2, 3, 4, 5}, function(n)
return n * 2
end))
- Follow the API documentation for the complete list.