array callback functions to apply to each element in an array