HH\ImmVector::fromKeysOf
Creates an ImmVector
from the keys of the specified container
public static function fromKeysOf<Tk as arraykey>(
?KeyedContainer<Tk, mixed> $container,
): ImmVector<Tk>;
Every key in the provided KeyedContainer
will appear sequentially in the
returned ImmVector
, with the next available integer key assigned to each.
Parameters
?KeyedContainer<Tk, mixed> $container
- The container with the keys used to create the currentImmVector
.
Returns
ImmVector<Tk>
- AnImmVector
built from the keys of the specified container.
Examples
See Vector::fromKeysOf
for usage examples.