what would be the modern way to write that loop?
Assuming you are actually asking about the given statement rather than the loop which contains it, the answer is in the FAQ.
🦛
In reply to Re: v5.36 syntax error around given/when
by hippo
in thread v5.36 syntax error around given/when
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |