Ross ROSS = Recommend OSS · open-source software intelligence for agents

apple/swift-algorithms

Commonly used sequence and collection algorithms for Swift observed · 2026-08-28

github.com/apple/swift-algorithms · Swift · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

65/100

  • Activity 93
  • Release rhythm 8
  • 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: n/a
  • age_days: 2162
  • days_rel: 569
  • days_push: 42
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

6327 stars · 481 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

An Apple-maintained Swift package of sequence and collection algorithms such as chunking, combinations, permutations, and random sampling. It extends the Swift standard library with well-tested, source-stable algorithm APIs.

Use cases

  • chunk a collection into consecutive subsequences
  • generate combinations and permutations of a collection
  • take a random sample from a sequence
  • cycle over collection elements
  • find unique or adjacent-pair operations on sequences
  • group array elements by a key path

When to choose

  • you need common sequence/collection algorithms beyond the Swift standard library
  • you want a source-stable, Apple-maintained package with semver guarantees
  • you want Python-itertools-like functionality in Swift

When to avoid

  • you need heavy data-structure algorithms like trees or graphs
  • you want a general-purpose algorithms textbook library rather than sequence/collection helpers
  • your project cannot adopt newer Swift toolchains required by recent versions

Facets

library · maturity stable

developer-tools developer-tools cross-platform cross-platform swift-package-manager sequences collections combinatorics itertools algorithms swift

1 source

Member repositories

RepositoryRoleHealth v2
apple/swift-algorithmsmain65

For agents

markdown · JSON · MCP: product_card(name="apple/swift-algorithms")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem