1. 6
  1.  

  2. 4

    The block -> keyword list behavior is well-documented (for example: http://elixir-lang.org/getting-started/case-cond-and-if.html#do-end-blocks). It is also what facilitates the short function definition syntax:

    def square(x), do: x * x
    

    is equivalent to

    def square(x) do
      x * x
    end
    
    1. -1

      Uh oh. I smell WAT!