code: public static ListDouble limit(final ListDouble data, final int start, final int end) {
          return new ListDouble() {
  
              @Override
              public double getDouble(int index) {
                  return data.getDouble(index + start);
              }
  
              @Override
              public int size() {
                  return end - start;
              }
          };
      }
docs: Returns a sublist of the given data.
  
  @param data a list
  @param start start point for the sublist
  @param end end point (exclusive) for the sublist
  @return the sublist