Returns a new collection consisting of items transformed by applying
the mapping function $predicate. Only the values are passed to the closure. If you want to pass only
the keys, you need to use CollectionInterface::mapKeys(). If you
want both keys and values, you need CollectionInterface::mapWithKey().
Returns a new collection consisting of items transformed by applying
the mapping function $predicate. Only the values are passed to the closure. If you want to pass only
the keys, you need to use CollectionInterface::mapKeys(). If you
want both keys and values, you need CollectionInterface::mapWithKey().