apple/swift-collections
Commonly used data structures for Swift observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 75
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 33.5
- age_days: 2025
- days_rel: 86
- days_push: 8
- n_releases_24m: 11
Adoption not part of the score
4481 stars · 403 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
An open-source Swift package from Apple providing implementations of commonly used data structures such as deques, ordered sets, ordered dictionaries, heaps, bit collections, and hash-based tree collections. It extends the Swift standard library with production-quality, generic container types organized into thematic modules.
Use cases
- need a deque or double-ended queue in Swift
- want an ordered set or ordered dictionary preserving insertion order
- need a priority queue or heap implementation
- require a fixed-capacity or uniquely-owned array type
- looking for a sorted or tree-backed dictionary in Swift
- need efficient bit set collections
When to choose
- you are writing Swift and need data structures missing from the standard library
- you want Apple-maintained, well-tested collection implementations
- you need performance-optimized generic containers via Swift Package Manager
When to avoid
- your project is not in Swift
- the standard library's Array, Set, and Dictionary already meet your needs
- you need highly specialized structures not offered by the package
Facets
library · maturity stable
developer-tools developer-tools programming-languages cross-platform data-structures collections deque ordered-dictionary ordered-set heap bitset swift-package algorithms swift
1 source
- readme: https://github.com/apple/swift-collections · fetched 2026-08-28 · ae5a65ed6496
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| apple/swift-collections | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="apple/swift-collections")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem