LibUint256Array
sum():
the sum
function in the LibUint256Array
library allows you to calculate the sum of all elements in a uint256
array using efficient assembly operations.
Input:
Field | Type | Description |
---|---|---|
An array of amounts whose sum needs to be found out. |
Output:
Field | Type | Description |
---|---|---|
The final sum of all the amounts |
Last updated