Hi,
This is an error in the text. I have already noticed this myself some time ago, and fixed it. The next MEAP release should contain the correct text.
In any case, the text should read: ... if we call ListHelper.smallest(123), we will get the result {:error, :invalid_argument} ...
The reason for this result is that the first clause doesn't match (since guard expression evaluates to false), so the second clause will match (since it matches everything), and there we explicitly return the error result.
|