Indexable
[index: number]: T
Constructors
constructor
- new Vector(length?: number, fixed?: boolean): Vector
-
Parameters
-
Optional length: number
-
Optional fixed: boolean
Methods
indexOf
- indexOf(x: T, from?: number): number
-
Parameters
-
x: T
-
Optional from: number
Returns number
insertAt
- insertAt(index: number, element: T): void
join
- join(sep: string): string
-
Parameters
Returns string
lastIndexOf
- lastIndexOf(x: T, from?: number): number
-
Parameters
-
x: T
-
Optional from: number
Returns number
push
-
Parameters
Returns number
removeAt
- removeAt(index: number): T
set
- set(index: number, value: T): T
slice
- slice(pos?: number, end?: number): Vector<T>
-
Parameters
-
Optional pos: number
-
Optional end: number
sort
-
Parameters
-
f: function
-
-
Parameters
Returns number
Returns void
splice
- splice(pos: number, len: number): Vector<T>
Static ofArray
- ofArray<T>(a: Array<T>): Vector<T>
-
Type parameters
Parameters