Returns whether the deque contains the specified element. Uses the equality function provided in the constructor, or pointer equality if none was provided.
Example:
var deque = new Deque<string> (GLib.str_equal);
deque.addLast ("apple");
assert (deque.contains ("apple"));
assert (!deque.contains ("banana"));
| element |
the element to search for. |
|
true if the element is found. |