Method ADT.List()->head()

class ADT.List

Method head

ValueType head()

Description

Get the element at the head of the list.

Throws

Throws an error if the list is empty.

See also

is_empty(), tail(), pop()