iex(5)> Enum.map([{1, 2}, {3, 4}], fn({x, _y}) -> x end)
[1, 3]
iex(6)> Enum.map([{40, 6}, {50, 12}], fn({x, _y}) -> x end)
'(2'
I tried the above code on the elixir interactive shell and had an unexpected output. I assume there's something wrong with the second code, Kindly advise.