inspect(item, opts \\ [])
Inspects and writes the given item to the device.
Okay, so IO.puts() has to evaluate it’s argument before executing, therefore inspect "hello" should output hello (in some form), and because inspect() returns its argument, that means this line:
Sorry peerreynders, I don’t understand what your code is supposed to demonstrate. I don’t understand why line 6 doesn’t output 2 things plus the return value of :ok, so 3 things total. I’m not concerned about how things are quoted–what I don’t understand is the number of things that iex outputs on line 6.
outputs 2 things. But, according to the docs, which I quoted, inspect() outputs something. Therefore by deductive reasoning, if IO.puts() outputs 2 things in iex, then according to the docs, the line: