Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


 
Function Foo (x) {
      =x**2
}
Function Bar(&f(), k) {
      =f(k)
}
Print Bar(&foo(), 20)=400
Group K {
      Z=10
      Function MulZ(x) {
            =.Z*x
            .Z++
      }
}
Print Bar(&K.MulZ(), 20)=200
Print K.Z=11
 