[erlang-questions] Accessing a single value from MAPS

Richard A. O'Keefe ok@REDACTED
Fri Oct 9 04:20:02 CEST 2015


On 9/10/2015, at 3:41 am, Fred Hebert <mononcqc@REDACTED> wrote:
> 
> There's an interesting distinction for maps in that any data structure·
> whatsoever might be a key, even tuples:
> 
> 5> #{{a,b,c} := _} = #{{a,b,c} => d}.
> #{{a,b,c} => d}

Sigh.  The key might even be a map, so that
   m1.m2.k
_could_ be parsed as m1.(m2.k).

Frames were so much simpler than maps...




More information about the erlang-questions mailing list