Compare commits
5 Commits
22bdbafb7e
...
c9fdb3ce05
Author | SHA1 | Date |
---|---|---|
benrob0329 | c9fdb3ce05 | |
benrob0329 | 540227c1ae | |
benrob0329 | 1661b5bba7 | |
benrob0329 | 0a832d52b7 | |
benrob0329 | 53f21e1d3a |
|
@ -1,8 +1,8 @@
|
||||||
package = "lambda"
|
package = "lambda"
|
||||||
version = "1.0-1"
|
version = "1.1-2"
|
||||||
source = {
|
source = {
|
||||||
url = "https://gitlab.com/benrob0329/lua-lambda",
|
url = "git+https://gitlab.com/benrob0329/lua-lambda",
|
||||||
tag = "v1.0",
|
tag = "v1.1",
|
||||||
}
|
}
|
||||||
|
|
||||||
description = {
|
description = {
|
|
@ -4,7 +4,7 @@ local lambda_template = "return function %s return %s end"
|
||||||
local cache = {}
|
local cache = {}
|
||||||
|
|
||||||
-- Lambda Format: l"(args) exp"
|
-- Lambda Format: l"(args) exp"
|
||||||
local function l(s, env)
|
local function l(s)
|
||||||
if not cache[s] then
|
if not cache[s] then
|
||||||
cache[s] = load(lambda_template:format(s:match("(%b()) (.+)$")))()
|
cache[s] = load(lambda_template:format(s:match("(%b()) (.+)$")))()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue