Use new looping construct in examples
This commit is contained in:
@@ -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