[erlang-questions] R17 maps and accessor syntax

Rudolph van Graan rvg.mailing@REDACTED
Sun Feb 2 00:00:24 CET 2014


Hi,

EEP43 says:

For accessing single values in maps, let us use an de-association:

V = M#{ K }.

11> B = #{key1 => 124, key2 => 111, key3 => 444}.
#{key1 => 124,key2 => 111,key3 => 444}

12> B#{ key1 }.
* 1: syntax error before: ‘}'

Am I doing something wrong?


R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140201/c9033b9e/attachment.htm>


More information about the erlang-questions mailing list