iex(64)> msg=%{"hello" => "there"}
%{"hello" => "there"}
iex(65)> Enum.reduce( Map.to_list(msg) , "", fn ({x,y},acc) -> x <> " " <> y <> acc end )
"hello there"
Created
April 7, 2016 13:32
-
-
Save binarytemple/894ac3efed47f2364afe422685fd9f96 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment