Lasso Soft Inc. > Home

[ Queue->insertFrom ]

Method

[queue->insertFrom] inserts values from an object such as an array.

The new items are added to the end of the queue object. 

The queue is modified and no output is returned.

  • Syntax
queue->insertFrom(array)
Examples
  • Beginner

To merge an array into an existing queue.

Code

local(x = queue('Tiger','Leopard'))
#x

'\r'

#x->insertFrom(array('Rhino','Elephant','Rhino'))

#x

Result

queue(Tiger, Leopard)
queue(Tiger, Leopard, Rhino, Elephant, Rhino)

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft