Sequence.isEmpty

bool isEmpty()

Returns true if the sequence contains zero items.

This function is functionally identical to checking the result of glib.sequence.Sequence.getLength being equal to zero. However this function is implemented in O(1) running time.

Returns

true if the sequence is empty, otherwise false.