[erlang-questions] list comprehension abuse

Brujo Benavides elbrujohalcon@REDACTED
Wed Jun 13 19:11:58 CEST 2018


I wrote a blog post about this a while back: https://medium.com/erlang-battleground/list-incomprehensions-ec504ec927c5 <https://medium.com/erlang-battleground/list-incomprehensions-ec504ec927c5>
Cheers! :)

Brujo Benavides <http://about.me/elbrujohalcon>



> On 13 Jun 2018, at 14:08, Frans Schneider <fchschneider@REDACTED> wrote:
> 
> Dear list,
> 
> Just stumbled over some code using the following construct:
> 
>  [do_something(X) || X /= 1, X /= 3]
> 
> Works rather nice, but is this considered good programming? I think it is called "list comprehension with no generator" and has to do something with OTP-7846.
> 
> Frans
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

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


More information about the erlang-questions mailing list