# IndexedSet

class `Animation.``IndexedSet`()

  Provides the functionality of a `Set` with the addition of a monotonically-increasing index associated with each element.

  ## Index

  Constructors

  - `constructor`

  Methods

  - `add`
  - `getIndex`
  - `isEmpty`
  - `toArray`

## Constructors

`Animation.IndexedSet.``constructor`()
  IndexedSet(): `IndexedSet`<T>

  Returns: `IndexedSet`<T>

## Methods

`Animation.IndexedSet.``add`()
  add(value: T): void

  Parameters

  > value: T

  Returns: void

`Animation.IndexedSet.``getIndex`()
  getIndex(value: T): number

  Parameters

  > value: T

  Returns: number

`Animation.IndexedSet.``isEmpty`()
  isEmpty(): boolean

  Returns: boolean

`Animation.IndexedSet.``toArray`()
  toArray(): T[]

  Returns an array containing each element of the set placed at its assigned index.

  Returns: T[]

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...