Adding explicit return types to Egorov and Fourier lambdas