|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Arrays and Data-Structures > LST. - List Arrays > Deque-Operations > LST. - List Management |
MiniRobotLanguage (MRL)
LST.PeekFirst
Retrieve the first value in the List without removing it.
Intention
The LST.PeekFirst command retrieves the first value in the List without removing it.
This is useful when you need to inspect the first item without altering the List.
Syntax
LST.PeekFirst|P1|P2
Parameter Explanation
P1 - (Variable)
The handle of the List to peek into.
P2 - (Variable)
The variable to store the first value.
Example
'***********************************
' LST.PeekFirst - Sample
'***********************************
LST.New|$$LST
LST.Add|$$LST|Hello
LST.Add|$$LST|World
LST.PeekFirst|$$LST|$$RES
DBP.First item in List: $$RES
LST.End|$$LST
ENR.
Remarks
-
Limitations:
-
See also:
•