I am not sure I find it useful to post a solution where a function call has a parameter that is itself a function definition:
(I know this started from post #1 of this thread)

For example
...
...