---
title: "dropFirst(_:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/publisher/dropfirst(_:)"
---

# dropFirst(_:)

Omits the specified number of elements before republishing subsequent elements.

## Declaration

```swift
func dropFirst(_ count: Int = 1) -> Publishers.Drop<Self>
```

## Parameters

- `count`: The number of elements to omit. The default is 1.

## Return Value

Return Value A publisher that doesn’t republish the first count elements.

## Discussion

Discussion Use dropFirst(_:) when you want to drop the first n elements from the upstream publisher, and republish the remaining elements. The example below drops the first five elements from the stream: let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] cancellable = numbers.publisher     .dropFirst(5)     .sink { print("\($0)", terminator: " ") }

// Prints: "6 7 8 9 10 "

## See Also

### Applying sequence operations to elements

- [drop(untilOutputFrom:)](combine/publisher/drop(untiloutputfrom:).md)
- [drop(while:)](combine/publisher/drop(while:).md)
- [tryDrop(while:)](combine/publisher/trydrop(while:).md)
- [append(_:)](combine/publisher/append(_:)-1qb8d.md)
- [append(_:)](combine/publisher/append(_:)-69sdn.md)
- [append(_:)](combine/publisher/append(_:)-5yh02.md)
- [prepend(_:)](combine/publisher/prepend(_:)-7wk5l.md)
- [prepend(_:)](combine/publisher/prepend(_:)-v9sb.md)
- [prepend(_:)](combine/publisher/prepend(_:)-5dj9c.md)
- [prefix(_:)](combine/publisher/prefix(_:).md)
- [prefix(while:)](combine/publisher/prefix(while:).md)
- [tryPrefix(while:)](combine/publisher/tryprefix(while:).md)
- [prefix(untilOutputFrom:)](combine/publisher/prefix(untiloutputfrom:).md)
