From 9e7ddacf853efd7a18c1911d2f287d483b083229 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 3 Jul 2022 00:35:32 -0400 Subject: Added a new custom type for pattern-matching macros. --- lux-python/source/program.lux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lux-python') 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 [] - [(pattern (list (,, (static.literals code.local (inputs/? ))))) + [(list (,, (static.literals code.local (inputs/? )))) (to_host ((as (,, (static.literal function.identity (function/? ))) it) (,, (static.literals code.local (inputs/? )))))] @@ -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/+)))))))))))) -- cgit v1.2.3