---
title: "forEach(_:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/filelist/foreach(_:)"
---

# forEach(_:)

Inherited from Sequence.forEach(_:).

## Declaration

```swift
func forEach(_ body: (Self.Element) throws -> Void) rethrows
```
