Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Created April 7, 2016 13:32
Show Gist options
  • Save binarytemple/894ac3efed47f2364afe422685fd9f96 to your computer and use it in GitHub Desktop.
Save binarytemple/894ac3efed47f2364afe422685fd9f96 to your computer and use it in GitHub Desktop.
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment