@quenty/queue

2.2.0 • Public • Published

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

Package Sidebar

Install

npm i @quenty/queue

Weekly Downloads

32

Version

2.2.0

License

MIT

Unpacked Size

5.7 kB

Total Files

6

Last publish

Collaborators

  • quenty