Invoke Operator & Operator Overloading in Kotlin
11:14 18 Jul 2017

I get to know about the Invoke operator that,

a() is equivalent to a.invoke()

Is there anything more regarding Invoke operator than please explain. Also, I did not get any example of Invoke operator overloading.

Is Invoke operator overloading possible? If possible then can anyone please explain about the Invoke operator overloading with an example? I did not get anything regarding this.

Thanks in advance.

operator-overloading kotlin