* @return Set
   */
  public static Set set(Cons values) {
    { Set set = Set.newSet();

      { Stella_Object v = null;
        Cons iter000 = values;
        Cons collect000 = null;

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          v = iter000.value;
          if (!set.memberP(v)) {
            if (collect000 == null) {
              {
                collect000 = Cons.cons(v, Stella.NIL);
                if (set.theConsList == Stella.NIL) {
                  set.theConsList = collect000;
                }
                else {
                  Cons.addConsToEndOfConsList(set.theConsList, collect000);
                }
              }
            }
            else {
              {
                collect000.rest = Cons.cons(v, Stella.NIL);
                collect000 = collect000.rest;
              }
            }
          }
        }
      }
      return (set);
    }
  }