From a269ea72337852e8e57bd427773baed111ad6e92 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 31 Oct 2017 22:26:59 -0400 Subject: - "^code" can now be used as a normal macro, when pattern-matching using the "^" macro. --- stdlib/source/lux.lux | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux index 6b68b9f29..51dff8142 100644 --- a/stdlib/source/lux.lux +++ b/stdlib/source/lux.lux @@ -6046,6 +6046,11 @@ (do Monad [pattern (untemplate-pattern template)] (wrap (list& pattern body branches))) - + + (^ (list template)) + (do Monad + [pattern (untemplate-pattern template)] + (wrap (list pattern))) + _ (fail "Wrong syntax for ^code"))) -- cgit v1.2.3