public Stella_Object nthRestSetter(Stella_Object value, int position) {
    { Cons self = this;

      if (position <= 0) {
        Stella.STANDARD_WARNING.nativeStream.println("Warning: Can't apply nth-rest setter to negative position `" + position + "'.");
      }
      { Cons cursor = self;

        { int i = Stella.NULL_INTEGER;
          int iter000 = 2;
          int upperBound000 = position;
          boolean unboundedP000 = upperBound000 == Stella.NULL_INTEGER;

          for (;unboundedP000 ||
                    (iter000 <= upperBound000); iter000 = iter000 + 1) {
            i = iter000;
            i = i;
            cursor = cursor.rest;
            if (cursor == Stella.NIL) {
              Stella.STANDARD_WARNING.nativeStream.println("Warning: 'nth-rest setter' ran off end of cons list.");
              return (null);
            }
          }
        }
        cursor.rest = ((Cons)(value));
        return (value);
      }
    }
  }