[erlang-questions] List comprehension question

Anthony Ramine n.oxyde@REDACTED
Mon May 26 13:02:38 CEST 2014


That would change semantics of existing programs, no thanks.

I do have plans to implement Pat ?= Expr filters, though, not reusing the matching operator ‘=‘.

-- 
Anthony Ramine

Le 22 mai 2014 à 21:44, Rich Neswold <rich.neswold@REDACTED> a écrit :

> It would be much nicer to use pattern matching and use the comprehension's ability to treat bad matches as a filter. But I can't replace the case statement above with:
> 
> [{{S, NC}, SF} || {S, C} <- Reqs,
>                   {value, {NC, SF}} = gb_trees:lookup({S, C}, T)]




More information about the erlang-questions mailing list