Swiftpack.co - vale-cocoa/Deque as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vale-cocoa.
vale-cocoa/Deque 2.0.2
A double ended queue, that is a queue which allows acces to its both ends with an amortized O(1) complexity.
⭐️ 0
🕓 3 years ago
.package(url: "https://github.com/vale-cocoa/Deque.git", from: "2.0.2")

Deque

A double ended queue, that is a queue which allows access to its both ends with an amortized O(1) complexity.

Deque is an ordered, random-access collection, it basically presents the same interface and behavior of an array (including value semantics), but with the advantage of an amortized O(1) complexity for operations on the first position of its storage, rather than O(n) as arrays do. A Deque is a FIFO (first in, first out) queue, thus it'll dequeue elements respecting the order in which they were enqeueued before.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics