class OrderedSet {
  constructor(values = []) {
    const seen = /* @__PURE__ */ new Set();
    const ordered = [];
    for (const value of values) {
      if (!seen.has(value)) {
        seen.add(value);
        ordered.push(value);
      }
    }
    this.values = ordered;
  }
  static of(...values) {
    return new OrderedSet(values);
  }
  toArray() {
    return [...this.values];
  }
  [Symbol.iterator]() {
    return this.values[Symbol.iterator]();
  }
}
export {
  OrderedSet
};
//# sourceMappingURL=ordered-set.js.map
