@quenty/queue

2.3.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

/@quenty/queue/

    Package Sidebar

    Install

    npm i @quenty/queue

    Weekly Downloads

    117

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    6.04 kB

    Total Files

    6

    Last publish

    Collaborators

    • quenty