wasyl
06/11/2017, 10:27 AMhughg
06/11/2017, 3:16 PMObject[]
. When the closure is actually invoked, the first argument is a helper object with some utility methods, and the second is the Object[]
.
I suppose in Groovy terms I could change the API so that Closure
is invoked with the helper object as its delegate and the Object[]
as its single argument, so it would fit Action<Object[]>
. In Kotlin terms, I'd want the closure type to be HelperClass.(Object[]) -> Unit
. But would that match `Action<Object[]>? I assume not, though I can try.varags Object[]
is now a member of the main object, so I can use Action<T>
.wasyl
06/12/2017, 10:45 AM