add `require_indices` to `apply` function
This improves the functionality of the apply
function. Easing the definition of the parameter function.
This improves the functionality of the apply
function. Easing the definition of the parameter function.