# Add an \`adjacentPairs\` algorithm to Sequence

**URL:** <https://forums.swift.org/t/add-an-adjacentpairs-algorithm-to-sequence/14817>\
**Category:** Pitches\
**Created:** [July 28, 2018, 9:11pm UTC](https://forums.swift.org/t/add-an-adjacentpairs-algorithm-to-sequence/14817 "2018-07-28T21:11:38Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![jawbroken](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jawbroken](https://forums.swift.org/u/jawbroken)\
**Post date:** [September 4, 2018, 1:00am UTC](https://forums.swift.org/t/add-an-adjacentpairs-algorithm-to-sequence/14817/18 "2018-09-04T01:00:17Z")

</div>

Thanks for writing it up. You probably don't need to address this in the proposal, but just a heads up that the discussion around [opaque result types](https://forums.swift.org/t/opaque-result-types/15645) is probably relevant here, since `AdjacentPairsSequence` seems like a good candidate for hiding in this way.

---

_[View the full topic](https://forums.swift.org/t/add-an-adjacentpairs-algorithm-to-sequence/14817)._
