RosettaCodeData/Task/Higher-order-functions/Pop11/higher-order-functions.pop11
2023-07-01 13:44:08 -04:00

7 lines
201 B
Text

;;; 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) =>