Typed the return value of many lambdas