y for x in xs if (y:=x.ComputeSomething()).IsFoo and y.IsBar
[(y:=x.ComputeSomething()) for x in xs if y.IsFoo and y.IsBar]