HH\ImmVector::values

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

Description

public function values(): ImmVector<Tv>

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

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.

Return Values

Examples

See Vector::values for usage examples.