Use new looping construct in examples

This commit is contained in:
2024-11-18 10:41:51 -06:00
parent 08cab74fb5
commit 7f241523d4
3 changed files with 14 additions and 9 deletions

View File

@@ -1,11 +1,10 @@
## Obligatory
fizzbuzz <- ->
loop(range(100), x ->
loop over x in range(100)
if x % 15 = 0 print("fizzbuzz")
elif x % 3 = 0 print("fizz")
elif x % 5 = 0 print("buzz")
else print(x)
)
fizzbuzz()