HH\Vector::clear

Removes all the elements from the current Vector

public function clear(): Vector<Tv>;

Future changes made to the current Vector ARE reflected in the returned Vector, and vice-versa.

Returns

Examples

$v = Vector {'red', 'green', 'blue', 'yellow'};
\var_dump($v);

$v->clear();
\var_dump($v);