Implement a function that returns the composition of two functions. The composition of functions g(x) and h(x) is a function that returns g(h(x)).
Lambda expressions
Function composition
Report a typo
Write a program in Kotlin
fun compose(g: (Int) -> Int, h: (Int) -> Int): (Int) -> Int {
TODO("Provide implementation")
}
___
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.