Array Comprehensions

Ryan Birmingham rainventions at
Mon Feb 6 16:59:55 UTC 2017

Hello all,

I frequently find myself desiring a short array or generator comprehension
syntax. I'm aware that there are functional ways around use of
comprehension syntax, but I personally (at least) love the syntax in the ES
reference (

The best previous discussion on this that I found was six years old ( and
answers some of my questions, raising others. That said, I wanted to ask:

   - Why is the Comprehension Syntax in the reference yet not more
   standard? It feels almost like a tease.
   - How do you usually approach or avoid this issue?
   - Do you think we should look at improving and standardizing the
   comprehension syntax?

Thank you all for humoring me,

-Ryan Birmingham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list