8 Mar
2016
8 Mar
'16
8:06 p.m.
2016-03-08 15:17 GMT+01:00, Allan Clark
[y for x in numbers if abs(x) as y > 5]
[...]
* It would need to be decided whether you allowed multiple 'as' expression in the condition, particularly using 'and' or 'or' as in 'if f(a) as x > 5 and f(b) as y > 5'
Just small idea not to forget here: [y+z for x in numbers if abs(x) as y > 5 or x**2 as z>100] "or" is short-circuit operator so z could be not (well) defined.