QUE. - Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > QUE. - Queue > QUE. - Operations >

QUE. - Operations

QUE.Push

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.Push

Add a value to the end of the queue.

 

 

Intention

 

The QUE.Push command appends a value to the end of a queue container.

The data type of the value must match the data type of the queue.

 

 

 

Illustration

 

Before QUE.Push operation:

 

Queue: [1, 2, 3]

 

After QUE.Push operation:

 

Queue: [1, 2, 3, 4]

 

The new element 4 is added to the end of the queue.

 

 

Syntax

 

 

QUE.Push|P1|P2

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the queue.

 

P2 - (Variable or Value)

 The value to append to the queue.

 

 

 

Example

 

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

' QUE.Push - Sample

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

QUE.New|$$QUE

QUE.Push|$$QUE|42

QUE.Push|$$QUE|Hello

DBP.Values pushed to the queue.

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: