hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

array-insert

Creates a new array with `value` inserted at the specified index.
Parameter
Type
Description
self
[T]
Initial array
index
number
Index at which to insert the value
value
T
Value to insert
return
[T]
New array with `value` inserted at index