Another thing was that ‘h’ didnt work either. Turns out, that I needed to compile with ‘c’ and give it a path to put the beam file, and the book did not mention that in any of the code examples, so the beam stayed in memory were the docs didn’t get created with it.
iex(8)> c("drop.ex", ".")
to get the beam to show up in the directory, then:
iex(9)> h Drop
Calculates the falling velocity of an object falling to earth, or any other
planet if the value for gravity is provided.
This is not promising for the book unless I was missing something.
I just looked on Safari Books. There is a second edition of that book and in that section it uses h/1. In the first edition, it uses s/1 like you said. That probably got changed to t/1 that @axelson mentioned.