The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

4ward (6) [Avatar] Offline
#1
Listing 2.9 for iex missing input and output for: iex(2)>...
Quick note:

Listing 2.9 for iex missing the "iex(2)>..." input and output

So upon putting in "iex(1)>..." and then entering in "iex(3)>..." the output is not what shows up in book illustration.
jfs.world (121) [Avatar] Offline
#2
Listing 2.9 for iex missing input and output for: iex(2)>...
This is what I have for MEAP v7 and it is wrong:
iex(1)> %{:status => 200, "content" => "Hello world!"}
%{"content" => "Hello world!", :status => 200}

iex(3)> Map.fetch(map, [1, "world"])
{:ok, :hello}


If this were to work, it would have to be more like the following:

iex(1)> map = %{:status => 200, [1, "world"] => :hello}
%{[1, "world"] => :hello, :status => 200}

iex(3)> Map.fetch(map, [1, "world"])
{:ok, :hello}