---
title: Supporting Types
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/supporting-types
---

# Supporting Types

Use wrappers, indices, and iterators in operations like slicing, flattening, and reversing a collection.

## Topics

### Slices

- [Slice](swift/slice.md)

### Range Expressions

- [PartialRangeUpTo](swift/partialrangeupto.md)
- [PartialRangeThrough](swift/partialrangethrough.md)
- [PartialRangeFrom](swift/partialrangefrom.md)
- [RangeExpression](swift/rangeexpression.md)
- [UnboundedRange_](swift/unboundedrange_.md)

### Type-Erasing Wrappers

- [AnySequence](swift/anysequence.md)
- [AnyCollection](swift/anycollection.md)
- [AnyBidirectionalCollection](swift/anybidirectionalcollection.md)
- [AnyRandomAccessCollection](swift/anyrandomaccesscollection.md)
- [AnyIterator](swift/anyiterator.md)
- [AnyIndex](swift/anyindex.md)
- [AnyHashable](swift/anyhashable.md)

### Lazy Wrappers

- [LazySequence](swift/lazysequence.md)
- [LazyMapSequence](swift/lazymapsequence.md)
- [LazyFilterSequence](swift/lazyfiltersequence.md)
- [LazyPrefixWhileSequence](swift/lazyprefixwhilesequence.md)
- [LazyDropWhileSequence](swift/lazydropwhilesequence.md)
- [LazyCollection](swift/lazycollection.md)
- [LazyDropWhileCollection](swift/lazydropwhilecollection.md)
- [LazyFilterCollection](swift/lazyfiltercollection.md)
- [LazyMapCollection](swift/lazymapcollection.md)
- [LazyPrefixWhileCollection](swift/lazyprefixwhilecollection.md)

### Wrappers for Algorithms

- [CollectionDifference](swift/collectiondifference.md)
- [DropFirstSequence](swift/dropfirstsequence.md)
- [DropWhileSequence](swift/dropwhilesequence.md)
- [EnumeratedSequence](swift/enumeratedsequence.md)
- [FlattenCollection](swift/flattencollection.md)
- [FlattenSequence](swift/flattensequence.md)
- [JoinedSequence](swift/joinedsequence.md)
- [PrefixSequence](swift/prefixsequence.md)
- [Repeated](swift/repeated.md)
- [ReversedCollection](swift/reversedcollection.md)
- [StrideTo](swift/strideto.md)
- [StrideThrough](swift/stridethrough.md)
- [UnfoldSequence](swift/unfoldsequence.md)
- [Zip2Sequence](swift/zip2sequence.md)

### Collections of Indices

- [DefaultIndices](swift/defaultindices.md)

### Indices and Iterators

- [IteratorSequence](swift/iteratorsequence.md)
- [IndexingIterator](swift/indexingiterator.md)
- [EnumeratedIterator](swift/enumeratediterator.md)
- [SetIterator](swift/setiterator.md)
- [StrideThroughIterator](swift/stridethroughiterator.md)
- [StrideToIterator](swift/stridetoiterator.md)

### Deprecated

- [DictionaryIndex](swift/dictionaryindex.md)
- [SetIndex](swift/setindex.md)
- [CountableClosedRange](swift/countableclosedrange.md)
- [CountablePartialRangeFrom](swift/countablepartialrangefrom.md)
- [CountableRange](swift/countablerange.md)

## See Also

### Advanced Collection Topics

- [Sequence and Collection Protocols](swift/sequence-and-collection-protocols.md)
- [Managed Buffers](swift/managed-buffers.md)
