[FOLD] Use lambdas instead of functors