Function composition

Report a typo

Complete the composition function body. It receives an integer value, a function y, and a function g and returns y(g(value)).

Write a program in Kotlin
fun composition(value: Int, y: (Int) -> Int, g: (Int) -> Int): Int {
// TODO: provide implementation here
}
___

Create a free account to access the full topic