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"));
| element |
the element to search for. |
|
true if the element is found. |