3 ms·
Much better would be [(y:=x.ComputeSomething()) for x in xs if y.IsFoo and y.IsBar]
by texaslonghorn5 4y ago
Much better would be
[(y:=x.ComputeSomething()) for x in xs if y.IsFoo and y.IsBar]
- int_19h 4y agoThat doesn't work, because that first subexpression is evaluated last, after "if".