I have a nested map in erlang and I can't figure of how to get the value of a key from it properly.
A = #{"key1" => "val1", "key2" => #{"key3"=>"val3", "key4" => #{"key5" => "val5"}}},
I want to extract the value of key5 and so far I've tried this.
A = #{"key1" => "val1", "key2" => #{"key3"=>"val3", "key4" => #{"key5" => "val5"}}},
S = maps:get("key2", A),
SS = maps:get("key4", S),
Val = maps:get("key5", SS),
Val.
I know it's working but I'm pretty sure there is a better way to do it!