ArraysImpl.sol 358 B

1234567891011121314151617
  1. pragma solidity ^0.5.7;
  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. }