swift-deque

0.0.2

A double-ended queue collection for Swift
lilyball/swift-deque

What's New

Deque v0.0.2

2020-11-25T23:08:23Z
  • Fix the declared package name so it matches the URL.
  • Expand the test suite to cover all code paths.

Deque

This package provides Deque, a random-access collection similar to Array but backed by a growable ring buffer and offering efficient insertion and removal at the front and back.

See Guide.playground for more information on usage.

Adding Deque as a dependency

To use Deque in a SwiftPM project, add the following line to the dependencies in your Package.swift file:

.package(url: "https://github.com/lilyball/swift-deque", from: "0.0.2"),

Because Deque is still pre-1.0, source-stability is only guaranteed within minor versions. If you don't want potentially source-breaking package updates, use this dependency specification instead:

.package(url: "https://github.com/lilyball/swift-deque", .upToNextMinor(from: "0.0.2")),

Finally, include "Deque" as a dependency for your target:

let package = Package(
    // name, etc…
    dependencies: [
        .package(url: "https://github.com/lilyball/swift-deque", .upToNextMinor(from: "0.0.2")),
    ],
    targets: [
        .target(name: "<target name>", dependencies: [
            .product(name: "Deque", package: "swift-deque")
        ]),
        // other targets…
    ]
)

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Oct 21 2024 15:55:38 GMT-0900 (Hawaii-Aleutian Daylight Time)