Slide 19
Slide 19 text
Higher Order Functions
fun hello(name : String) {
//.. body
}
fun myFunction(name: String, myFunc: (String) -> Unit) {
//…. body
}
Team MAST
This parameter accepts a function type value
This parameter accepts a String type value
myFunction(“Joe”, ::hello)