unhandled &1 outside of a capture

Problem

Running something like the following in iex:

IO.inspect MyList.all?([4, 5, 6], &1 > 3)

results in the following error:

unhandled &1 outside of a capture

Solution

Since the shortcut has been changed you will need to do the following:

IO.inspect MyList.all?([4, 5, 6], &(&1 > 3))