Creates a Vector from the keys of the specified container

public static function fromKeysOf<Tk, Tv2>(
  ?KeyedContainer<Tk,Tv2> $container,
): Vector<Tk>;

Every key in the provided KeyedContainer will appear sequentially in the returned Vector, with the next available integer key assigned to each.


  • ?KeyedContainer<Tk,Tv2> $container - The container with the keys used to create the Vector.

Return Values