ArraysImpl.sol 332 B

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