Compare commits

...

5 Commits

Author SHA1 Message Date
benrob0329 c9fdb3ce05 Bump Version (properly) 2021-06-15 13:31:01 -04:00
benrob0329 540227c1ae Bump Revision 2021-06-15 13:29:32 -04:00
benrob0329 1661b5bba7 Fix The Rockspec 2021-06-15 13:23:44 -04:00
benrob0329 0a832d52b7 Fix? The Rockspec 2021-06-15 13:04:52 -04:00
benrob0329 53f21e1d3a Remove unused parameter 2021-05-06 22:11:56 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
package = "lambda"
version = "1.0-1"
version = "1.1-2"
source = {
url = "https://gitlab.com/benrob0329/lua-lambda",
tag = "v1.0",
url = "git+https://gitlab.com/benrob0329/lua-lambda",
tag = "v1.1",
}
description = {

View File

@ -4,7 +4,7 @@ local lambda_template = "return function %s return %s end"
local cache = {}
-- Lambda Format: l"(args) exp"
local function l(s, env)
local function l(s)
if not cache[s] then
cache[s] = load(lambda_template:format(s:match("(%b()) (.+)$")))()
end