Skip to main content

Managing Items

Get / Remove Item

Gets or removes an item at a specific position.

Modes

  • Get: Returns the item without changing the list.
  • Get and Remove: Returns the item and deletes it from the list.
  • Remove: Deletes the item (no return value).

Locations

  • #: Specific index (starts at 1).
  • # from end: Index counting from the back.
  • First / Last: The first or last item.
  • Random: A random item.

Set / Insert Item

Changes an item or adds a new one at a specific position.

  • Set: Overwrites the existing item.
  • Insert: Adds a new item, shifting others down.