What would be an elegant way for converting a list of two item tuples like [{1,2},{3,4}]
into the map %{1=>2, 3=>4}
?
Keyword list would be trivial, but what if we have arbitrary keys?
What would be an elegant way for converting a list of two item tuples like [{1,2},{3,4}]
into the map %{1=>2, 3=>4}
?
Keyword list would be trivial, but what if we have arbitrary keys?