Applying transformations to a collection