Adding explicit return type to Kahan lambda function