[erlang-bugs] Map comprehension syntax

Fyodor Ustinov ufm@REDACTED
Fri Mar 7 03:46:34 CET 2014


Hi!

In https://github.com/erlang/eep/blob/master/eeps/eep-0043.md set the next syntax in example:

M1 = #{ I => f(I) || I <- list() }

But I was not able to execute such an instruction:

Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.0  (abort with ^G)
1> #{ I => I || I <- [1,2,3]}.
* 1: syntax error before: '||'

Maybe maps is not fully implemented?

WBR,
    Fyodor.



More information about the erlang-bugs mailing list