### arr
Overload | Description |
---|---|
arr<T>() -> Array<'T> |
Creates an empty Array<'T>
|
Overload | Description |
---|---|
reserve<T>(arr: @Array<'T>, size: Int) -> () |
Allocates enough memory in arr to contain size elements
|
Overload | Description |
---|---|
len<T>(arr: @Array<'T>) -> Int |
Returns the length of arr
|
Overload | Description |
---|---|
capacity<T>(arr: @Array<'T>) -> Int |
Returns the allocated size inside of arr
|
Overload | Description |
---|---|
push<T>(arr: @Array<'T>, elem: 'T) -> () |
Appends elem to the end of arr
|
Overload | Description |
---|---|
pop<T>(arr: @Array<'T>) -> () |
Remove the last element of arr if it exists
|
Overload | Description |
---|---|
insert<T>(arr: @Array<'T>, elem: 'T, pos: Int) -> () |
Inserts elem into arr at the position pos
|
Overload | Description |
---|---|
remove<T>(arr: @Array<'T>, pos: Int) -> () |
Remove pos 'th element of arr
|
Overload | Description |
---|---|
set<T>(arr: @Array<'T>, elem: 'T, pos: Int) -> () |
Sets the pos 'th element of arr to elem
|