title: How to print out a map's array values in Elixir?
body: <p>New to Elixir from Ruby and I'm trying to print out a map's array values using the following code:</p>
  
  <p><strong>map-script.ex</strong></p>
  
  <pre><code>list = [0, 1]
  map = %{0 =&gt; [1, 2], 1 =&gt; [2, 3]}
  
  Enum.each list, fn n -&gt;
    IO.puts map[n]
  end
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>^A^B
  ^B^C
  </code></pre>
  
  <p>What am I doing wrong?  Elixir looks similar to Ruby but it behaves differently....</p>