Kotlin - Functions
Identify the error in this Kotlin code:
val greet: String -> String = { name -> "Hi, $name" }
println(greet("Bob"))val greet: String -> String = { name -> "Hi, $name" }
println(greet("Bob"))15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions