import { inspectList } from "./helpers.js";

//#region ../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js
function arrayFromSet(set) {
	const values = [];
	set.forEach((value) => {
		values.push(value);
	});
	return values;
}
function inspectSet(set, options) {
	if (set.size === 0) return "Set{}";
	options.truncate -= 7;
	return `Set{ ${inspectList(arrayFromSet(set), options)} }`;
}

//#endregion
export { inspectSet as default };