ArrayOperations

Functions

checkUnique

Checks that array of numbers are unique.

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

Parameters

NameTypeDescription

array

uint32[]

Array of numbers to check.

maxArrayElementValue

uint256

Maximum value possible in Array.

Errors

ArrayElementsNotUnique

error ArrayElementsNotUnique(uint256 index, uint256 duplicateEntry);

Last updated