First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
7
Task/FizzBuzz/Erlang/fizzbuzz.erl
Normal file
7
Task/FizzBuzz/Erlang/fizzbuzz.erl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fizzbuzz() ->
|
||||
F = fun(N) when N rem 15 == 0 -> "FizzBuzz";
|
||||
(N) when N rem 3 == 0 -> "Fizz";
|
||||
(N) when N rem 5 == 0 -> "Buzz";
|
||||
(N) -> integer_to_list(N)
|
||||
end,
|
||||
[F(N)++"\n" || N <- lists:seq(1,100)].
|
||||
Loading…
Add table
Add a link
Reference in a new issue