modify

docblock
modify(x, f)

Modify a copy of x applying f to each of its elements.