Working with lists

What happens when following line of code is run in Elixir?

length([1, [2], 3]) = 3

Options
  1. All values of length will be set to 3.
  2. A Compile Error is thrown
  3. A Match Error is thrown
  4. The first value of length is set to 3

Related Posts