Kotlin - Functions
What is the output of this Kotlin code?
val greet: (String) -> String = { name -> "Hello, $name!" }
println(greet("Anna"))val greet: (String) -> String = { name -> "Hello, $name!" }
println(greet("Anna"))15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions