isFirst method
Determine whether the element is the first element of the collection
Implementation
bool isFirst(T element) {
if (isEmpty) return false;
return first == element;
}
Determine whether the element is the first element of the collection
bool isFirst(T element) {
if (isEmpty) return false;
return first == element;
}