HH\Vector::keys

Returns a Vector containing the keys of the current Vector

public function keys(): Vector<int>;

Returns

Examples

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