conDel Function

Removes a specified number of elements from a container.


container conDel(container container, int start, int number)

Parameter

Description

container

The container to remove some elements from.

start

The position at which to start deleting elements.

The first element is specified by the number 1.

number

The number of elements to delete.

The container that holds the remaining values.

static void conDelExample(Args _args)
{
    container c = ["Hello world", 1, 3.14];
    ;
    // Deletes the first two items from the container.
    c = conDel(c, 1, 2);
}

Community Additions

ADD
Show: