is_empty


Description:

[ Version ( since = "2.48" ) ]
public bool is_empty ()

Returns true if the sequence contains zero items.

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

Parameters:

this

a Sequence

Returns:

true if the sequence is empty, otherwise false.