utils

Home > @silence_zhpf/utils > HashSet > add

HashSet.add() method

该函数将值添加到 HashSet 并返回更新后的 HashSet.

Signature:

add(v: T): HashSet<T>;

Parameters

Parameter Type Description
v T 要添加到 HashSet 的值。

Returns:

HashSet<T>

更新后的HashSet