aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/host/lua.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-04-06 08:32:41 -0400
committerEduardo Julian2018-04-06 08:32:41 -0400
commitca238f9c89d3156842b0a3d5fe24a5d69b2eedb0 (patch)
tree50ba106541f2357daf27393df28e8b263f7311e1 /new-luxc/source/luxc/lang/host/lua.lux
parent84d7e87817cd2c074653b34d028c8fa807febc7f (diff)
- Adapted new-luxc's code to latest stdlib changes.
Diffstat (limited to 'new-luxc/source/luxc/lang/host/lua.lux')
-rw-r--r--new-luxc/source/luxc/lang/host/lua.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/new-luxc/source/luxc/lang/host/lua.lux b/new-luxc/source/luxc/lang/host/lua.lux
index 943b0377e..8f057bc29 100644
--- a/new-luxc/source/luxc/lang/host/lua.lux
+++ b/new-luxc/source/luxc/lang/host/lua.lux
@@ -87,7 +87,7 @@
(def: #export (cond! clauses else!)
(-> (List [Expression Statement]) Statement Statement)
- (list/fold (.function [[test then!] next!]
+ (list/fold (.function (_ [test then!] next!)
(if! test then! next!))
else!
(list.reverse clauses)))
@@ -139,7 +139,7 @@
(-> (List [Text Expression]) Expression)
(format "{"
(|> fields
- (list/map (.function [[key val]]
+ (list/map (.function (_ [key val])
(format key " = " val)))
(text.join-with ", "))
"}"))