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(6)> fizzbuzz2 = fn n -> fizzbuzz.(rem(n, 3), rem(n, 5), n) end #Function<6.52032458/1 in :erl_eval.expr/5> iex(7)> fizzbuzz2.(10) "Buzz" iex(8)> fizzbuzz2.(11) 11 iex(9)> fizzbuzz2.(12) "Fizz" iex(10)> fizzbuzz2.(13) 13 iex(11)> fizzbuzz2.(14) 14 iex(12)> fizzbuzz2.(15) "FizzBuzz" iex(13)> fizzbuzz2.(16) 16