[erlang-questions] list comprehension with match

Schneider schneider@REDACTED
Fri Feb 10 18:10:07 CET 2017


yes, works and is rather nice if you looked at the explanation of what 
list comprehensions are translated to beforehand,  but the simple form 
would be so much more expressive.


On 02/10/2017 05:59 PM, Kostis Sagonas wrote:
> Member_keys = [(fun(#member{key = Key}) -> Key end)(M) || M <- Members]. 




More information about the erlang-questions mailing list