Higher-order functions: Difference between revisions

(→‎{{header|Euphoria}}: Euphoria example added)
Line 1,251:
;;; Pass it as argument to built-in function map and print the result
mapdata({0 1 2 3 4}, x_times_three_minus_1) =></lang>
 
=={{header|PostScript}}==
{{libheader|initlib}}
<lang>
/x_times_3_sub_1 {3 * 1 sub}.
[0 1 2 3 4] {x_times_3_sub_1} map
</lang>
 
=={{header|Prolog}}==
418

edits