LST. - List Management

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > LST. - List Arrays > Deque-Operations >

LST. - List Management

LST.PushLast

Previous Top Next


 

MiniRobotLanguage (MRL)

 

LST.PushLast

Add a value at the end of the List.

 

 

Intention

 

The LST.PushLast command adds a value to the end of a List. This is useful when you need to append items to the List without affecting the existing order.

Unlike LST.PushFirst, which adds items to the front, LST.PushLast ensures the new item is added at the end.

 

 

Syntax

 

 

LST.PushLast|P1|P2

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the List to which the value will be added.

P2 - (Value)

 The value to add at the end of the List.

 

 

Example

 

'***********************************

' LST.PushLast - Sample

'***********************************

LST.New|$$LST

LST.PushLast|$$LST|Hello

LST.PushLast|$$LST|World

LST.Last|$$LST|$$RES

DBP.Last item in List: $$RES

LST.End|$$LST

ENR.

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: