lodash inspired library for lua
Lua
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src
README.md
config.ld
lodash-0.02-0.rockspec

README.md

README

lodash.lua v0.02

lodash inspired library for lua

Summary

A functional programming library for lua in respect to the javascript library lodash.

How to use the library?

  • 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))