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