We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 877035d commit 9a71c3eCopy full SHA for 9a71c3e
examples/fizzbuzz.funk
@@ -1,7 +1,10 @@
1
`15..1` t1t
2
3
fizzbuzz(x) =
4
- ? x % 15 == 0 => "fizzbuzz", fizzbuzz(x).step():
5
- ? x % 3 == 0 => "fizz", fizzbuzz(x).step():
6
- ? x % 5 == 0 => "buzz", fizzbuzz(x).step():
7
- x, fizzbuzz(x).step()
+ ? x % 15 == 0 => "fizzbuzz":
+ ? x % 3 == 0 => "fizz":
+ ? x % 5 == 0 => "buzz":
+ x
8
+
9
+fizzbuzz(x).step(15)
10
+print(x)
0 commit comments