---
title: makeIterator()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/strideto/makeiterator()
---

# makeIterator()

Returns an iterator over the elements of this sequence.

## Declaration

```swift
func makeIterator() -> StrideToIterator<Element>
```

## Discussion

Discussion note: O(1).
