aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/common-lisp/function.jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/common-lisp/function.jvm.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/common-lisp/function.jvm.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/new-luxc/source/luxc/lang/translation/common-lisp/function.jvm.lux b/new-luxc/source/luxc/lang/translation/common-lisp/function.jvm.lux
index 543cbe899..54834b65c 100644
--- a/new-luxc/source/luxc/lang/translation/common-lisp/function.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/common-lisp/function.jvm.lux
@@ -26,7 +26,7 @@
(def: $missing (_.var "missing"))
(def: input-declaration
- (|>> n/inc referenceT.variable))
+ (|>> inc referenceT.variable))
(def: (with-closure function-name inits function-definition)
(-> Text (List Expression) Expression (Meta Expression))
@@ -55,7 +55,7 @@
(//.with-anchor [function-name +1]
(translate bodyS))))
closureO+ (monad.map @ referenceT.translate-variable env)
- #let [arityO (|> arity nat-to-int _.int)
+ #let [arityO (|> arity .int _.int)
$num_args (_.var "num_args")
$function (_.var function-name)]]
(with-closure function-name closureO+
@@ -63,7 +63,7 @@
(_.let (list [$num_args (_.length (@@ $curried))])
(<| (_.if (|> (@@ $num_args) (_.= arityO))
(_.let (list [(referenceT.variable +0) (_.function (@@ $function))])
- (_.destructuring-bind [(|> (list.n/range +0 (n/dec arity))
+ (_.destructuring-bind [(|> (list.n/range +0 (dec arity))
(list/map input-declaration)
_.poly)
(@@ $curried)]