powered by
The QueueL class creates a queue with list backend. It is recommended for short queue.
QueueL
An object of class R6ClassGenerator of length 24.
R6ClassGenerator
QueueL$new() QueueL$push(item) QueueL$pop() QueueL$size() QueueL$as_list()
item: any R object
item
Queue
# NOT RUN { q <- QueueL$new() q$push("first") q$push("second") q$pop() # first q$pop() # second # }
Run the code above in your browser using DataLab