Previous: , Up: LinkedList   [Index]


1.104.5 LinkedList: testing

isEmpty

Returns true if the list contains no members

notEmpty

Returns true if the list contains at least a member

size

Answer the number of elements in the list. Warning: this is O(n)