Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/FizzBuzz/Coconut/fizzbuzz.coconut
Normal file
7
Task/FizzBuzz/Coconut/fizzbuzz.coconut
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
def fizzbuzz(n):
|
||||
case (n % 3, n % 5):
|
||||
match (0, 0): return "FizzBuzz"
|
||||
match (0, _): return "Fizz"
|
||||
match (_, 0): return "Buzz"
|
||||
else: return n |> str
|
||||
range(1,101)|> map$(fizzbuzz)|> x -> '\n'.join(x)|> print
|
||||
Loading…
Add table
Add a link
Reference in a new issue