A Double-Ended Queue Type in Swift
Deque<Element> implements a double-ended queue type.
Array-like random-access collection of arbitrary elements that provides efficient O(1) insertion and deletion at both ends.
Deques are structs and implement the same copy-on-write value semantics as standard collection types like
Deque on the
master branch is compatible with Swift 4.2.
If you use CocoaPods, you can start using
Deque by including it as a dependency in your
pod 'Deque', '~> 3.1'
For Carthage, add the following line to your
github "attaswift/Deque" ~> 3.1
Swift Package Manager
For Swift Package Manager, add
SipHash to the dependencies list inside your
import PackageDescription let package = Package( name: "MyPackage", dependencies: [ .Package(url: "https://github.com/attaswift/SipHash.git", from: "3.1.1") ] )