Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
12
Task/FizzBuzz/Pointless/fizzbuzz.pointless
Normal file
12
Task/FizzBuzz/Pointless/fizzbuzz.pointless
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
output =
|
||||
range(1, 100)
|
||||
|> map(fizzBuzz)
|
||||
|> printLines
|
||||
|
||||
fizzBuzz(n) =
|
||||
if result == "" then n else result
|
||||
where result = fizzBuzzString(n)
|
||||
|
||||
fizzBuzzString(n) =
|
||||
(if n % 3 == 0 then "Fizz" else "")
|
||||
+ (if n % 5 == 0 then "Buzz" else "")
|
||||
Loading…
Add table
Add a link
Reference in a new issue