ArraysImpl.sol 357 B

1234567891011121314151617
  1. pragma solidity ^0.6.0;
  2. import "../utils/Arrays.sol";
  3. contract ArraysImpl {
  4. using Arrays for uint256[];
  5. uint256[] private _array;
  6. constructor (uint256[] memory array) public {
  7. _array = array;
  8. }
  9. function findUpperBound(uint256 element) external view returns (uint256) {
  10. return _array.findUpperBound(element);
  11. }
  12. }