I had to write this function that takes the functional interface mapper and maps the elements of a stack to type . My question is why the
mapper