View Source
Dx.Util.Map
(dx v0.3.0)
Utility functions for working with Map
data structures.
When given two maps, merges the second map into the first.
When the first argument is nil
, returns the second argument.
Returns a Map
with given keys and values zipped together
When given two maps, merges the second map into the first.
When the first argument is nil
, returns the second argument.
Returns a Map
with given keys and values zipped together
iex> [:d, :e, :b]
...> |> Dx.Util.Map.zip([8, 2, 3])
%{d: 8, e: 2, b: 3}