powered by
The Queue class creates a queue with pairlist backend.
Queue
An object of class R6ClassGenerator of length 24.
R6ClassGenerator
Queue$new(items = NULL) Queue$push(item) Queue$pop() Queue$peek() Queue$clear() Queue$size() Queue$as_list()
items: initialization list
items
item: any R object
item
QueueL
# NOT RUN { q <- Queue$new() q$push("first") q$push("second") q$pop() # first q$pop() # second q <- Queue$new(list("foo", "bar")) q$push("baz")$push("bla") # }
Run the code above in your browser using DataLab