# Subtract

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

Interface for the `-` operator.

`a - b` becomes `a.subtract(b)`.

```ds title="Subtract"
export newtype interface Subtract<T = this> {
    Output;
    subtract(other: T): this.Output;
}
```

[language/library/src/ops/minus.ds:5:11](https://github.com/destack-sh/destack/blob/main/language/library/src/ops/minus.ds#L5-L11)

## Members

### `Output`

The result type.

### `subtract(other: T): this.Output`

Subtract `other` from this value.
