Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


;;; Define a function
define x_times_three_minus_1(x);
  return(3*x-1);
enddefine;
 
;;; Pass it as argument to built-in function map and print the result
mapdata({0 1 2 3 4}, x_times_three_minus_1) =>