[erlang-questions] style question - best way to test multiple non-guard conditions sequentially

Anthony Ramine <>
Mon Jun 24 14:45:43 CEST 2013


Forgot to Cc the list, again.

-- 
Anthony Ramine

Le 24 juin 2013 à 13:24, Anthony Ramine a écrit :

> Hello Richard,
> 
> List = [foo],
> [] = [ X || {bar,X} <- List ],
> {'EXIT',_} = (catch [ X || {bar,X} <:- List ]).
> 
> Basically, the <:- generator doesn't have a lc([_|T]) -> lc(T) skipping clause.
> 
> Regards,




More information about the erlang-questions mailing list