Assoc v0.1.1 Assoc.Util View Source
Collection of utility functions
Link to this section Summary
Functions
Recursively converts the keys of a map into an atom
Link to this section Functions
Link to this function
keys_to_atoms(map, options \\ []) View Source
Recursively converts the keys of a map into an atom.
Options:
:whitelist
-> List of strings to convert to atoms. When passed, only strings in whitelist will be converted.
Example:
keys_to_atoms(%{"nested" => %{"example" => "value"}})
Returns:
%{nested: %{example: "value"}}