Adapts a Kotlin function to a single argument Groovy Closure.
4.1
the function to be adapted.
the expected type of the single argument to the closure.