2.3.0 • Published 1 year ago

@quenty/queue v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Queue

Queue class with better performance characteristics than table.remove()

Installation

npm install @quenty/queue --save

Usage

local queue = Queue.new()
queue:PushRight("a")
queue:PushRight("b")
queue:PushRight("c")

while not queue:IsEmpty() do
    local entry = queue:PopLeft()
    print(entry) --> a, b, c
end