This is a simple enough change I think it’s best if you gave it a shot on your own. If you have something like
user_params = %{"age" => 19, "fullname" => "matt213", "sex" => "male"}
what does doing
user_params |> Enum.map(fn thing -> IO.inspect(thing) end)
print?
What does this tell you about the shape of each item when you map over a map, and how might that fit into your Enum.reduce call?






















