# HashByteSeq
<span class="source-link">[[Source]](src/collections/hashable.md#L-0-107)</span>

Hash and equality functions for arbitrary ByteSeq.


```pony
primitive val HashByteSeq is
  HashFunction[ByteSeq box] val,
  HashFunction64[ByteSeq box] val
```

#### Implements

* [HashFunction](collections-HashFunction.md)\[[ByteSeq](builtin-ByteSeq.md) box\] val
* [HashFunction64](collections-HashFunction64.md)\[[ByteSeq](builtin-ByteSeq.md) box\] val

---

## Constructors

### create
<span class="source-link">[[Source]](src/collections/hashable.md#L-0-107)</span>


```pony
new val create()
: HashByteSeq val^
```

#### Returns

* [HashByteSeq](collections-HashByteSeq.md) val^

---

## Public Functions

### hash
<span class="source-link">[[Source]](src/collections/hashable.md#L-0-112)</span>


```pony
fun box hash(
  x: ByteSeq box)
: USize val
```
#### Parameters

*   x: [ByteSeq](builtin-ByteSeq.md) box

#### Returns

* [USize](builtin-USize.md) val

---

### hash64
<span class="source-link">[[Source]](src/collections/hashable.md#L-0-115)</span>


```pony
fun box hash64(
  x: ByteSeq box)
: U64 val
```
#### Parameters

*   x: [ByteSeq](builtin-ByteSeq.md) box

#### Returns

* [U64](builtin-U64.md) val

---

### eq
<span class="source-link">[[Source]](src/collections/hashable.md#L-0-118)</span>


```pony
fun box eq(
  x: ByteSeq box,
  y: ByteSeq box)
: Bool val
```
#### Parameters

*   x: [ByteSeq](builtin-ByteSeq.md) box
*   y: [ByteSeq](builtin-ByteSeq.md) box

#### Returns

* [Bool](builtin-Bool.md) val

---

### ne
<span class="source-link">[[Source]](src/collections/hashable.md#L-0-112)</span>


```pony
fun box ne(
  that: HashByteSeq val)
: Bool val
```
#### Parameters

*   that: [HashByteSeq](collections-HashByteSeq.md) val

#### Returns

* [Bool](builtin-Bool.md) val

---

