/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { type NestedMap, getOrDefaultInNestedMap, populateNestedMap, setInNestedMap, } from "./nestedMap.js"; export type NestedSet = NestedMap; export function addToNestedSet( set: NestedSet, key1: Key1, key2: Key2, ): void { setInNestedMap(set, key1, key2, true); } export function nestedSetContains( set: NestedSet, key1: Key1, key2: Key2, ): boolean { return getOrDefaultInNestedMap(set, key1, key2, false); } export function populatedNestedSet( source: NestedSet, destination: NestedSet, ): void { populateNestedMap(source, destination, true); }