Range.first

Returns the first element of the range.

Arguments

None

Return values

value
or
{ key: Key; value: Value; }
structure, depending on the range type.

Complexity

Constant

Example

"sl/linkedList" useFile "sl/hashTable" useFile l: (1 2 10 50) makeList; h: ((1 "ONE") (2 "TWO") (3 "THREE")) makeHashTable; r: l.makeRange; r.first print LF print h.makeRange.first print
Output:
1 { key: 1; value: "ONE"; }