Hey! I came across this in the book Elixir in Action and am wondering what the into %{}
does here?
iex(6)> multiplication_table =
for x <- 1..9, y <- 1..9,
x <= y, ①
into: %{} do
{{x, y}, x*y}
end
iex(7)> multiplication_table[{6, 7}]
42
iex(8)> multiplication_table[{7, 6}]
nil
Juric, Sasa. Elixir in Action (pp. 196-197). Manning. Kindle Edition.