From 86aa2d6ab3a003652159fa37828c27744a2cb45d Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 11 Aug 2022 07:48:24 +0200 Subject: mcall ty --- src/all.hff | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/all.hff') diff --git a/src/all.hff b/src/all.hff index e8298b0..13051c6 100644 --- a/src/all.hff +++ b/src/all.hff @@ -16,6 +16,16 @@ defmacro assert { ] } +defmacro foreach(x, i, a, ...body) [ + { + let $a = a; + for let i = 0; i < $a.#len; ++i { + let x = $a[i]; + { body } + } + } +] + /// Types struct Type; -- cgit v1.2.3