aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
authorEduardo Julian2022-07-03 00:35:32 -0400
committerEduardo Julian2022-07-03 00:35:32 -0400
commit9e7ddacf853efd7a18c1911d2f287d483b083229 (patch)
tree140eee091b7453879f072a48044635d03aa5096b /lux-python
parent7e4c9ba2e02f06fa621ffe24bc0ca046536429ef (diff)
Added a new custom type for pattern-matching macros.
Diffstat (limited to 'lux-python')
-rw-r--r--lux-python/source/program.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index bafdc790a..d24824965 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -270,11 +270,11 @@
(in (loop (again [it it
inputs inputs])
(`` (`` (case inputs
- (pattern (list))
+ (list)
(as org/python/core/PyObject self)
(,, (with_template [<arity>]
- [(pattern (list (,, (static.literals code.local (inputs/? <arity>)))))
+ [(list (,, (static.literals code.local (inputs/? <arity>))))
(to_host ((as (,, (static.literal function.identity (function/? <arity>))) it)
(,, (static.literals code.local (inputs/? <arity>)))))]
@@ -287,8 +287,8 @@
[7]
[8]))
- (pattern (list.partial (,, (static.literals code.local (inputs/? 8)))
- input/+))
+ (list.partial (,, (static.literals code.local (inputs/? 8)))
+ input/+)
(again ((as (,, (static.literal function.identity (function/? 8))) it)
(,, (static.literals code.local (inputs/? 8))))
input/+))))))))))))