# equal

`import { equal } from "destack";`

Return elementwise equality.

Return whether two byte sequences are equal.

Return a lane mask for equality.

```ds title="equal"
export declare function equal<T, const Rank: usize>(left: Tensor<T, Rank>, right: Tensor<T, Rank>, options?: TensorOutputOptions<boolean, Rank> | undefined): Tensor<boolean, Rank>
```

[language/library/src/tensor/ops.ds:171:175](https://github.com/destack-sh/destack/blob/main/language/library/src/tensor/ops.ds#L171-L175)

```ds title="equal"
export function equal(left: &'a readonly [uint8], right: &'b readonly [uint8]): boolean
```

[language/library/src/bytes/bytes.ds:168:170](https://github.com/destack-sh/destack/blob/main/language/library/src/bytes/bytes.ds#L168-L170)

```ds title="equal"
export declare function equal<T, const N: usize>(left: Vector<T, N>, right: Vector<T, N>): Mask<N>
```

[language/library/src/math/vector.ds:81](https://github.com/destack-sh/destack/blob/main/language/library/src/math/vector.ds#L81)
