Paul Rubin <http://phr.cx@NOSPAM.invalid> writes: > (lambda: g(x), lambda: f(x))[bool(condition)]() Since you call the object afterwards, you don't need the lambdas (which add a layer of indirection), just the function references: (g, f)[bool(condition)]()