HH\ImmVector::values

Returns a new ImmVector containing the values of the current ImmVector; that is, a copy of the current ImmVector

public function values(): ImmVector<Tv>;

This method is NOT interchangeable with toImmVector() and immutable(). toImmVector() and immutable() return the current ImmVector, and do not incur the cost of copying the current ImmVector, or the memory space consumed by the new ImmVector. This may be significant, for large ImmVectors.

Returns

Examples

See [Vector::values](</hack/reference/class/Vector/values/#examples>) for usage examples.