# PartialEqual

`import { PartialEqual } from "destack:ops";`

Interface for partial equality.

`a == b` becomes `a.equal(b)`.
`a != b` becomes `!a.equal(b)`.

Some values, like floating-point NaN, do not have total equality.

```ds title="PartialEqual"
export newtype interface PartialEqual<T = this> {
    equal(other: &'b readonly T): boolean;
}
```

[language/library/src/ops/equality.ds:8:10](https://github.com/destack-sh/destack/blob/main/language/library/src/ops/equality.ds#L8-L10)

## Members

### `equal(other: &'b readonly T): boolean`
