Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ELIXIR

elixir get nested map value

nested_map = %{ name: %{ first_name: "blackode"} }
first_name = Map.get(nested_map, [:name, :first_name])
 
PREVIOUS NEXT
Tagged: #elixir #nested #map
ADD COMMENT
Topic
Name
7+8 =