Wraps a collection with a call to collectMany, which returns a flattened list with results of applying a function to each element of the collection.