How to Convert Map to a List of Keys and Values

From ElixirBlocks
Jump to: navigation, search

%{:en => 1, :jp => 4, :zip => 0}  
|> Enum.map(&Tuple.to_list/1) 
|> IO.inspect