---
title: "drop(while:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/lazyprefixwhilesequence/drop(while:)"
---

# drop(while:)

Returns a lazy sequence that skips any initial elements that satisfy predicate.

## Declaration

```swift
func drop(while predicate: @escaping (Self.Elements.Element) -> Bool) -> LazyDropWhileSequence<Self.Elements>
```

## Parameters

- `predicate`: A closure that takes an element of the sequence as its argument and returns true if the element should be skipped or false otherwise. Once predicate returns false it will not be called again.
