O'Reilly logo
  • MICHAEL MASLENKO thinks this is interesting:

You use the :: operator for that:

val getAge = Person::age

This expression is called member reference, and it provides a short syntax for creating a function value that calls exactly one method or accesses a property


Cover of Kotlin in Action


5 Fact