diff options
author | Eduardo Julian | 2022-07-03 00:35:32 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-07-03 00:35:32 -0400 |
commit | 9e7ddacf853efd7a18c1911d2f287d483b083229 (patch) | |
tree | 140eee091b7453879f072a48044635d03aa5096b /lux-python | |
parent | 7e4c9ba2e02f06fa621ffe24bc0ca046536429ef (diff) |
Added a new custom type for pattern-matching macros.
Diffstat (limited to 'lux-python')
-rw-r--r-- | lux-python/source/program.lux | 8 |
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/+)))))))))))) |