From e87e6dabfbdc1d35b5fe41b5d84dab38df3c8e76 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 16:49:40 -0400 Subject: Insert `then` for clarity --- test/when.tm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'test/when.tm') diff --git a/test/when.tm b/test/when.tm index 28573d88..d18f5276 100644 --- a/test/when.tm +++ b/test/when.tm @@ -3,12 +3,9 @@ func main() answers := [ ( - when x is "A","B" - "A or B" - is "C" - "C" - else - "Other" + when x is "A","B" then "A or B" + is "C" then "C" + else "Other" ) for x in ["A", "B", "C", "D"] ] >> answers -- cgit v1.2.3