StrictKeyedIterable::mapWithKey

public function mapWithKey<Tu>(
  (function(Tk, Tv): Tu) $fn,
): KeyedIterable<Tk, Tu>;

Parameters

  • (function(Tk, Tv): Tu) $fn

Returns