code: public static int minIndex(int a, int b)
      {
          return (a < 0) ? b
              : (b < 0) ? a
                  : (a < b) ? a : b;
      }
docs: Returns the minimum index >= 0, if any
  
  <p>
  Use to find the first of two characters in a string:<br>
  <code>minIndex(s.indexOf('/'), indexOf('\'))</code>
  </p>