---
title: "init(_:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/anyhashable/init(_:)"
---

# init(_:)

Creates a type-erased hashable value that wraps the given instance.

## Declaration

```swift
init<H>(_ base: H) where H : Hashable
```

## Parameters

- `base`: A hashable value to wrap.
