apply
Element-wise application of the supplied function. The array is changed in place. Using FunctionIfc avoids autoboxing when dealing with primitive doubles.
Parameters
array
the array to apply the function on, must not be null
function
the function to apply, must not be null