contains


Description:

public bool contains (T element)

Returns whether the list contains the specified element. Uses the equality function provided in the constructor, or pointer equality if none was provided.

Example:

    var list = new LinkedList<string> (GLib.str_equal);
list.addLast ("apple");
assert (list.contains ("apple"));
assert (!list.contains ("banana"));

Parameters:

element

the element to search for.

Returns:

true if the element is found.