If I dont use a separate function TypeScript can easily infer the function parameters and can effectively use the result of processFn to declare the Result
If I dont use a separate function TypeScript can easily infer the function parameters and can effectively use the result of processFn to declare the Result