Remove unused parameter

master
benrob0329 2021-05-06 22:11:56 -04:00
parent 22bdbafb7e
commit 53f21e1d3a
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
package = "lambda"
version = "1.0-1"
version = "1.1-1"
source = {
url = "https://gitlab.com/benrob0329/lua-lambda",
tag = "v1.0",
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