<TKey, T>
public
mapKeys<UKey>(Closure(TKey): UKey $predicate): CollectionInterface<UKey, T>
Returns a new collection consisting of items transformed by the mapping function $predicate that accepts the keys as inputs.
$predicate
Nexus\Collection\Collection::mapKeys()