Elixir's biggest gotchas?

The thing that confused me the most in the beginning was the syntactic sugar for Keyword lists. I kept seeing these odd things in the options list for functions and I had no idea what they really were.

IO.inspect Process.list, width: 40

I cargo culted a lot of code until I actually made the connection that line is really.

IO.inspect(Process.list, [{:width , 40}])

10 Likes