github.com/Tri-stone/burrow@v0.25.0/tests/jobs_fixtures/app35-library_handling/single-lib.sol (about)

     1  pragma solidity >=0.0.0;
     2  
     3  library Search {
     4      function indexOf(uint[] storage self, uint value) public view returns (uint) {
     5          for (uint i = 0; i < self.length; i++)
     6              if (self[i] == value) return i;
     7          return uint(-1);
     8      }
     9  }