cdm/src/main/java/ucar/ma2/Range.java
public boolean contains(int want) {
    if (want < first())
      return false;
    if (want > last())
      return false;
    if (stride == 1) return true;
    return (want - first) % stride == 0;
  }
public boolean contains(int want) {
    if (want < first())
      return false;
    if (want > last())
      return false;
    if (stride == 1) return true;
    return (want - first) % stride == 0;
  }
Is want contained in this Range?

@param want index in the original Range
@return true if the ith element would be returned by the Range iterator