News for hackers. Stuff that matters.
Re:Decision Tables by pdimitar on Thursday October 18, 2018 @06:42PM (#18252857)
Elixir:

  def fizzbuzz(x) when is_integer(x) do
    case {rem(x, 3), rem(x, 5)} do
      {0, 0} -> "FizzBuzz"
      {0, _} -> "Fizz"
      {_, 0} -> "Buzz"
      {_, _} -> Integer.to_string(x)
    end
  end

There are no comments on this comment yet.