map-methods function

Apply a function to an object.