peekFirst


Description:

public T peekFirst ()

Returns the first element without removing it. Returns null if the deque is empty.

Example:

    var deque = new Deque<string> (GLib.str_equal);
deque.addLast ("a");
assert (deque.peekFirst () == "a");
assert (deque.size () == 1);

Returns:

the first element, or null if empty.