/lodash.lua

lodash inspired library for lua

Primary LanguageLua

Lodash for Lua

CircleCI

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