modify_if

docblock
modify_if(x, f, p)

Modify a copy of x applying f to each of its elements where the function p is true.