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.

Return Values