MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / difference

Method difference

src/lualib/Set.ts:194–200  ·  view source on GitHub ↗

* @returns a new Set containing all the elements in this Set which are not also in the argument.

(other: ReadonlySet<T>)

Source from the content-addressed store, hash-verified

192 * @returns a new Set containing all the elements in this Set which are not also in the argument.
193 */
194 public difference(other: ReadonlySet<T>): Set<T> {
195 const result = new Set<T>(this);
196 for (const item of other) {
197 result.delete(item);
198 }
199 return result;
200 }
201
202 /**
203 * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.95

Tested by

no test coverage detected