subfunction { 2 * $^x + 3 };my @array = 1 .. 5;# via map function.sayformap &function, @array;# via map method.sayfor @array.map(&function);# via for loopfor @array {say function($_);}# via the "hyper" metaoperator and method indirectionsay @array».&function;# we neither need a variable for the array nor for the functionsay [1,2,3]>>.&({ $^x + 1});