the function applytoeach is called higher-order because it has an argument that is itself function the first time it is calledit mutates by applying the unary built-in function abs to each element the second time it is calledit applies type conversion to each element the third time it is calledit replaces each element by the result of applying the function factr (defined in figure to each element and the fourth time it is calledit replaces each element by the result of applying the function fib (defined in figure to each element it prints [ - apply abs to each element of [ apply int to each element of [ [ apply factorial to each element of [ [ apply fibonnaci to each element of [ [ python has built-in higher-order functionmapthat is similar tobut more general thanthe applytoeach function defined in figure in its simplest form the first argument to map is unary function ( function that has only one parameterand the second argument is any ordered collection of values suitable as arguments to the first argument it returns list generated by applying the first argument to each element of the second argument for examplethe expression map(fact[ ]has the value [ more generallythe first argument to map can be of function of argumentsin which case it must be followed by subsequent ordered collections for examplethe code [ [ print map(minl prints the list [