public static Cons yieldInCursorClausesForVector(Stella_Object collectiontree, StandardObject collectiontype, Symbol keyvar, Symbol valuevar, Object [] MV_returnarray) {
    if (keyvar != null) {
      { Object old$PrintreadablyP$000 = Stella.$PRINTREADABLYp$.get();

        try {
          Native.setBooleanSpecial(Stella.$PRINTREADABLYp$, true);
          Stella.signalTranslationError();
          if (!(Stella.suppressWarningsP())) {
            Stella.printErrorContext(">> ERROR: ", Stella.STANDARD_ERROR);
            {
              Stella.STANDARD_ERROR.nativeStream.println();
              Stella.STANDARD_ERROR.nativeStream.println(" Illegal key variable specified for `" + Stella_Object.deUglifyParseTree(collectiontype) + "'.");
            }
;
          }

        } finally {
          Stella.$PRINTREADABLYp$.set(old$PrintreadablyP$000);
        }
      }
      { Cons _return_temp = Stella.NIL;

        MV_returnarray[0] = Stella.NIL;
        MV_returnarray[1] = Stella.NIL;
        MV_returnarray[2] = Stella.SYM_STELLA_FALSE;
        return (_return_temp);
      }
    }
    { Symbol vectorvar = Stella.localGensym("VECTOR");
      Symbol indexvar = Stella.localGensym("INDEX");
      Symbol lengthvar = Stella.localGensym("LENGTH");

      { Cons _return_temp = Cons.list$(Cons.cons(Cons.cons(valuevar, Cons.cons((((collectiontype == Stella.SGT_STELLA_STRING) ||
            (collectiontype == Stella.SGT_STELLA_MUTABLE_STRING)) ? Stella.SGT_STELLA_CHARACTER : ((StandardObject)(StandardObject.extractParameterType(collectiontype, Stella.SYM_STELLA_ANY_VALUE, new Object[1])))), Cons.cons(Stella.SYM_STELLA_NULL, Stella.NIL))), Cons.cons(Cons.cons(vectorvar, Cons.cons(collectiontype, Cons.cons(collectiontree, Stella.NIL))), Cons.cons(Cons.cons(indexvar, Cons.list$(Cons.cons(Stella.SGT_STELLA_INTEGER, Cons.cons(IntegerWrapper.wrapInteger(0), Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(Cons.cons(lengthvar, Cons.list$(Cons.cons(Stella.SGT_STELLA_INTEGER, Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_LENGTH, Cons.cons(vectorvar, Cons.cons(Stella.NIL, Stella.NIL)))), Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(Stella.NIL, Stella.NIL))))));

        MV_returnarray[0] = Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_SETQ, Cons.cons(valuevar, Cons.cons(Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_NTH, Cons.cons(vectorvar, Cons.cons(Cons.cons(indexvar, Stella.NIL), Stella.NIL)))), Stella.NIL), Stella.NIL)))), Stella.NIL);
        MV_returnarray[1] = Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_ii, Cons.cons(indexvar, Cons.cons(Stella.NIL, Stella.NIL)))), Stella.NIL);
        MV_returnarray[2] = Cons.list$(Cons.cons(Stella.SYM_STELLA_l, Cons.cons(indexvar, Cons.cons(Cons.cons(lengthvar, Stella.NIL), Stella.NIL))));
        return (_return_temp);
      }
    }
  }