Higher Order Functions


fun twice(f: (T)->T) : (T)->T = f(f(it))


fun f(x: Int) = x + 3

{ 
  println(twice(::f)(7))
              
}
Back Home Next