Easypt

insert

..Root.Array.insert

Inserts a copy of the sequence of elements in the range [first, last) before element pointed by e.

Child of:

Array

Signatures:

NativeCallable, Callable

Example:

auto arr.=(Array());
arr.pushBack("abc", "def");

auto numbers.=(Array().pushBack(1, 2, 3, 4, 5, 6, 7));

arr.insert(arr.begin(), numbers.begin(), numbers.end());
log(arr);