> For the complete documentation index, see [llms.txt](https://docs.mav.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mav.xyz/technical-reference/maverick-v2/v2-contracts/maverick-v2-common-contracts/libraries/arrayoperations.md).

# ArrayOperations

### Functions <a href="#functions" id="functions"></a>

#### checkUnique <a href="#checkunique" id="checkunique"></a>

Checks that array of numbers are unique.

```solidity
function checkUnique(uint32[] memory array, uint256 maxArrayElementValue) internal pure;
```

**Parameters**

| Name                   | Type       | Description                      |
| ---------------------- | ---------- | -------------------------------- |
| `array`                | `uint32[]` | Array of numbers to check.       |
| `maxArrayElementValue` | `uint256`  | Maximum value possible in Array. |

### Errors <a href="#errors" id="errors"></a>

#### ArrayElementsNotUnique <a href="#arrayelementsnotunique" id="arrayelementsnotunique"></a>

```solidity
error ArrayElementsNotUnique(uint256 index, uint256 duplicateEntry);
```

<br>
