LinkedList.first

Returns the first entry of the list.

Arguments

None

Return values

value
of the first entry, empty if there are no entries in the list.

Complexity

Constant

Example

"sl/linkedList" useFile a: (1 2 0 5 "Hello" 0.3) makeList; a.first print
Output:
1