The latest version of the book is P1.0, released 6 months ago. If you've bought a PDF of the book and would like to update it to this version (for free), visit your home page.
By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:
If you've found a new error, please submit it.
- Reported in: P1.0 (08-Apr-18)
PDF page: 3
list = [1, 2, 3, 4]
# => 
My iex result:
iex(1)> list = [1, 2, 3, 4]
[1, 2, 3, 4]
iex(2)> List.delete_at(list, -1)
[1, 2, 3]
My Elixir version:
Elixir 1.6.3 (compiled with OTP 19)--Mihai Tonea
- Reported in: P1.0 (02-Mar-18)
Paper page: 22
This sentence: " That’s why the anonymous function can’t see the make_answer
variable: it was defined after the function-creation expression"
Should be: " That’s why the anonymous function can’t see the redefined answer
variable: it was redefined after the function-creation expression"
make_answer is the function, answer is the variable that was redefined to 0. The function can't see the redefinition to 0 because it was done after the function was defined. Is my understanding correct?--tae8838