Conditionally apply a function

apply_if(predicate, func, data, ...)

Arguments

predicate

a predicate

func

a function to apply

data

data used by the function or otherwise returned

...

other objects involved in evaluation of the function

Value

data