class Inky.HashSet
_indices: {[any]: number}
_elements: any[]
constructor(self: Inky.HashSet)
add(self: Inky.HashSet, element: any): Inky.HashSet

Adds the specified element to the HashSet

remove(self: Inky.HashSet, element: any): Inky.HashSet

Removes the specified element from the HashSet

has(self: Inky.HashSet, element: any): (True: boolean)

Determines whether the HashSet has the specified element

Returns:

True (boolean) – if the HashSet contains the specified element, false otherwise

count(self: Inky.HashSet): (Number: integer)

Gets the number of elements that are in the HashSet

Returns:

Number (integer) – of elements in the HashSet

indexOf(self: Inky.HashSet, element: any): (The: number | nil)

Returns the index of the element within the HashSet

Returns:

The (number | nil) – index of the element or nil if it does not exist

getByIndex(self: Inky.HashSet, index: number): (The: any)

Returns the element at the specified index

Returns:

The (any) – element at the specified index, or nil if it does not exist

clear(self: Inky.HashSet): Inky.HashSet

Removes all elements from the HashSet

difference(self: Inky.HashSet, other: Inky.HashSet, out?: table): table

Compute the difference between 2 sets