contains


Description:

public bool contains (T element)

Returns whether the set contains the specified element.

Example:

    var set = new HashSet<string> (GLib.str_hash, GLib.str_equal);
set.add ("apple");
assert (set.contains ("apple"));
assert (!set.contains ("banana"));

Parameters:

element

the element to check.

Returns:

true if the element is in the set.