Complete the composition function body. It receives an integer value, a function y, and a function g and returns y(g(value)).
Functions as objects
Function composition
Report a typo
Write a program in Kotlin
fun composition(value: Int, y: (Int) -> Int, g: (Int) -> Int): Int {
// TODO: provide implementation here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.