Kevin Smith (2014-08-11T14:05:07.000Z)
domenic at domenicdenicola.com (2014-08-18T18:38:35.554Z)
> Turns out, yes: you can do it by constructing a graph of combinators, > with normal method syntax. So you can do: > > ```js > var sequence = iterable.lazy().if(somePredicate) > ``` That makes sense, but are comprehensions in any way future-hostile to this approach? My impression is that Python programmers find comprehensions more "approachable" than itertools-style programming. Although the combinator approach is obviously more extensible and general, comprehensions seem better suited to some cases and skill levels. Is there any reason that we can't have both?