Kotlin - Functions
Identify the error in the following Kotlin code that uses a function as a parameter:
fun applyOperation(x: Int, y: Int, operation: (Int, Int) -> Int): Int {
return operation(x, y)
}
fun main() {
val result = applyOperation(4, 2) { a, b -> a * b
println(result)
}