Danish Ansari
05/03/2023, 3:20 PM```fun someFunction(param: (String) -> Unit) {}
class SomeClass {
fun functionWithOneParameter(param: String) {}
}
// caller place
// what is this :: notation called?
val someClass = SomeClass()
someFunction(param = someClass::functionWithOneParameter)
Paul Griffith
05/03/2023, 3:22 PMDanish Ansari
05/03/2023, 3:26 PMVampire
05/03/2023, 3:41 PM::
. 🙂Danish Ansari
05/03/2023, 3:44 PM::
and actually calling the function?Vampire
05/03/2023, 3:45 PMDanish Ansari
05/03/2023, 3:46 PMPaul Griffith
05/03/2023, 3:59 PMephemient
05/03/2023, 6:13 PMStephan Schröder
05/04/2023, 7:05 AM