---
title: "hash(into:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/int/hash(into:)"
---

# hash(into:)

Hashes the essential components of this value by feeding them into the given hasher.

## Declaration

```swift
func hash(into hasher: inout Hasher)
```

## Parameters

- `hasher`: The hasher to use when combining the components of this instance.

## See Also

### Describing an Integer

- [description](swift/int/description.md)
- [customMirror](swift/int/custommirror.md)
