Previous: LinkedList-enumerating, Up: LinkedList


1.101.4 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)