News for hackers. Stuff that matters.
Re:Comparison of Haskell and Julia List Comprehensions by tpoacher on Thursday July 08, 2021 @04:33AM (#27769531)
I appreciate where you're coming from, but this particular order allows you to reuse a variable. E.g, in earlier pythons which didn't yet have ":=", the example given by the comment below yours could be written as:

  [ z for x in range(1,6) for y in [x+1] for z in [2*y] for z in [-z] ]
Obviously not the kind of style you'd want to see in written code, but ...

There are no comments on this comment yet.