Help Contents / Data Structure Primitives / Mutators / queue

queue queuename thing

command.  Adds the "thing" to the queue that is the value of the variable whose name is "queuename".  This variable must have a list as its value; the initial value should be the empty list. New members are added at the back of the list, so this is a bit slow because the whole list must be traversed till its end. 

Examples: 

	q=[] 
	queue "q "Hallo 
	show q		;[hallo] 
	queue "q "World 
	show q		;[hallo world] 


previous: pop	next: dequeue
