Use new looping construct in examples
This commit is contained in:
1 parent
08cab74fb5
commit
7f241523d4
3 files changed
+14
-9
No files matched your search
+1
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user