---
title: LazyPrefixWhileSequence.Iterator
framework: swift
role: symbol
role_heading: Structure
path: swift/lazyprefixwhilesequence/iterator
---

# LazyPrefixWhileSequence.Iterator

An iterator over the initial elements traversed by a base iterator that satisfy a given predicate.

## Declaration

```swift
@frozen struct Iterator
```

## Overview

Overview This is the associated iterator for the LazyPrefixWhileSequence, LazyPrefixWhileCollection, and LazyPrefixWhileBidirectionalCollection types.

## Topics

### Type Aliases

- [LazyPrefixWhileSequence.Iterator.Element](swift/lazyprefixwhilesequence/iterator/element.md)

### Default Implementations

- [IteratorProtocol Implementations](swift/lazyprefixwhilesequence/iterator/iteratorprotocol-implementations.md)
- [Sequence Implementations](swift/lazyprefixwhilesequence/iterator/sequence-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [IteratorProtocol](swift/iteratorprotocol.md)
- [Sequence](swift/sequence.md)
