Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


Local map
Define map(f,l)=Func
  Return seq(#f(l[i]),i,1,dim(l))
EndFunc
Disp map("sin", {0, π/6, π/4, π/3, π/2})