iex(1)> fizzbuzz = fn ...(1)> 0, 0, _ -> "FizzBuzz" ...(1)> 0, _, _ -> "Fizz" ...(1)> _, 0, _ -> "Buzz" ...(1)> _, _, n -> n ...(1)> end #Function<18.52032458/3 in :erl_eval.expr/5> iex(2)> fizzbuzz.(0, 0, 15) "FizzBuzz" iex(3)> fizzbuzz.(0, 3, 3) "Fizz" iex(4)> fizzbuzz.(2, 0, 5) "Buzz" iex(5)> fizzbuzz.(1, 1, 1) 1