/** * @param callable $fnMap($value, $key) -- function that returns the new key * @return static */ public function keyBy($fnMap) { return static::make(IterationTraits::mapKeys($this, FnGen::fnSwapParamsPassThrough($fnMap))); }