Skip to content

Remove from List

Type: list-remove-at  ·  Package: Collections Activities v1.0.3  ·  Output: none

Removes the element at a specific position of the list. Indexes start at 0.

Removes from list the element at position index, modifying the list directly. The elements that came after it move up one position. If the index does not exist, it fails and the list does not change.

ParameterTypeDefaultDescription
listList—The list.
indexint—Position of the element to remove, counting from 0.

None.

This activity does not return a value; it modifies the list in place.

MessageCause and fix
Index … is out of range (list count: …).The index is negative or does not exist. Use count(list) - 1 for the last element.
'list' must be a List, got ….list is not a list (the message shows the type received, or null).
Remove from List list = names index = 0 // removes the first one
List Count list = names → output: remaining