I am confused with ::functionName. and functionNam...
# android
c
I am confused with ::functionName. and functionName(), functionName.invoke(). What's the difference and how do they work?
1
c
functionName()
is just a “shortcut” for using the
invoke
operator. https://kotlinlang.org/docs/operator-overloading.html#invoke-operator with
::functionName
you get a reference to the function. https://kotlinlang.org/docs/reflection.html#function-references