Function composition

Report a typo

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)).

Write a program in Kotlin
fun compose(g: (Int) -> Int, h: (Int) -> Int): (Int) -> Int {
TODO("Provide implementation")
}
___

Create a free account to access the full topic