Latest 3.1.1
License MIT
Platforms osx 10.9, ios 8.0, tvos 9.0, watchos 2.0

A Double-Ended Queue Type in Swift

Swift 4.2

Build Status

Carthage compatible
CocoaPod Version

Deque<Element> implements a double-ended queue type.
It’s an 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
Array and Dictionary.


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 Podfile:

pod 'Deque', '~> 3.1'


For Carthage, add the following line to your Cartfile:

github "attaswift/Deque" ~> 3.1

Swift Package Manager

For Swift Package Manager, add SipHash to the dependencies list inside your Package.swift file:

import PackageDescription

let package = Package(
    name: "MyPackage",
    dependencies: [
        .Package(url: "", from: "3.1.1")

Latest podspec

    "name": "Deque",
    "version": "3.1.1",
    "platforms": {
        "osx": "10.9",
        "ios": "8.0",
        "tvos": "9.0",
        "watchos": "2.0"
    "license": {
        "type": "MIT",
        "file": ""
    "summary": "Double-ended queue type in pure Swift",
    "homepage": "",
    "authors": "Ku00e1roly Lu0151rentey",
    "source": {
        "git": "",
        "tag": "v3.1.1"
    "source_files": "Sources/*.swift",
    "social_media_url": "",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This