ArraysImpl.sol 382 B

12345678910111213141516171819
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../utils/Arrays.sol";
  4. contract ArraysImpl {
  5. using Arrays for uint256[];
  6. uint256[] private _array;
  7. constructor(uint256[] memory array) {
  8. _array = array;
  9. }
  10. function findUpperBound(uint256 element) external view returns (uint256) {
  11. return _array.findUpperBound(element);
  12. }
  13. }