RosettaCodeData/Task/Higher-order-functions/Pop11/higher-order-functions.pop11
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07: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) =>