How can I map a template to a HashDict in Elixir? I can’t find any decent information anywhere. So, I have an example, and it is bound to a variable:
#HashDict<[{"a", 1}, {"b", 2}]>
And let's say I want to get 2
I tried something like this to test the concept, but no luck:
[{"a",1}, {"b",val} = a
But I get: (MatchError) matching right side value
Can someone help me?
source
share