# SE-0358: Primary Associated Types in the Standard Library

**URL:** <https://forums.swift.org/t/se-0358-primary-associated-types-in-the-standard-library/57432>\
**Category:** Proposal Reviews\
**Tags:** generics, stdlib\
**Created:** [May 18, 2022, 8:39pm UTC](https://forums.swift.org/t/se-0358-primary-associated-types-in-the-standard-library/57432 "2022-05-18T20:39:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lorentey](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lorentey/32/1299_2.png) [@lorentey](https://forums.swift.org/u/lorentey)\
**Post date:** [May 18, 2022, 9:45pm UTC](https://forums.swift.org/t/se-0358-primary-associated-types-in-the-standard-library/57432/3 "2022-05-18T21:45:53Z")

</div>

`Strideable<Stride>` is based on the sheer number of extensions we have in the stdlib that constrain `Stride`, as well as the (subjective) obviousness of it per point 2 in the proposed API guidelines.

```swift
./stdlib/public/core/ClosedRange.swift:134:1:where Bound: Strideable, Bound.Stride: SignedInteger {
./stdlib/public/core/ClosedRange.swift:139:23:extension ClosedRange where Bound: Strideable, Bound.Stride: SignedInteger {
./stdlib/public/core/ClosedRange.swift:180:1:where Bound: Strideable, Bound.Stride: SignedInteger, Bound: Hashable {
./stdlib/public/core/ClosedRange.swift:201:1:where Bound: Strideable, Bound.Stride: SignedInteger
./stdlib/public/core/ClosedRange.swift:442:23:extension ClosedRange where Bound: Strideable, Bound.Stride: SignedInteger {
./stdlib/public/core/ClosedRange.swift:478:3: where Bound.Stride: SignedInteger
./stdlib/public/core/MigrationSupport.swift:144:61:public typealias ClosedRangeIndex<T> = ClosedRange<T>.Index where T: Strideable, T.Stride: SignedInteger
./stdlib/public/core/MigrationSupport.swift:160:17:extension Range where Bound: Strideable, Bound.Stride: SignedInteger {
./stdlib/public/core/MigrationSupport.swift:170:23:extension ClosedRange where Bound: Strideable, Bound.Stride: SignedInteger {
./stdlib/public/core/RandomAccessCollection.swift:271:34:extension RandomAccessCollection where Index: Strideable, Index.Stride == Int {
./stdlib/public/core/RandomAccessCollection.swift:277:1:where Index: Strideable,
./stdlib/public/core/Range.swift:212:1:where Bound: Strideable, Bound.Stride: SignedInteger {
./stdlib/public/core/Range.swift:218:1:where Bound: Strideable, Bound.Stride: SignedInteger
./stdlib/public/core/Range.swift:309:17:extension Range where Bound: Strideable, Bound.Stride: SignedInteger {
./stdlib/public/core/Range.swift:677:3: where Bound: Strideable, Bound.Stride: SignedInteger
./stdlib/public/core/Range.swift:1018:3: where Bound.Stride: SignedInteger
./stdlib/public/core/Range.swift:1023:3: where Bound.Stride: SignedInteger
./stdlib/public/core/Stride.swift:124:15: /// where T.Stride: ExpressibleByIntegerLiteral
./stdlib/public/core/Stride.swift:260:22:extension Strideable where Stride: FloatingPoint {
./stdlib/public/core/Stride.swift:275:22:extension Strideable where Self: FloatingPoint, Self == Stride {
./stdlib/public/core/Stride.swift:404:1:where Element.Stride: BinaryInteger {
./stdlib/public/core/Stride.swift:622:1:where Element.Stride: BinaryInteger {
./stdlib/public/core/Stride.swift:746:3: where Element: Sendable, Element.Stride: Sendable { }
./stdlib/public/core/Stride.swift:748:3: where Element: Sendable, Element.Stride: Sendable { }
./stdlib/public/core/Stride.swift:750:3: where Element: Sendable, Element.Stride: Sendable { }
./stdlib/public/core/Stride.swift:752:3: where Element: Sendable, Element.Stride: Sendable { }

```

---

_[View the full topic](https://forums.swift.org/t/se-0358-primary-associated-types-in-the-standard-library/57432)._
