ll.DeleteSubList

ll.DeleteSubList (Source: list, Start: number, End: number) -> list

Removes the slice from start to end and returns the remainder of the list. Remove a slice from the list and return the remainder, start and end are inclusive. Using negative numbers for start and/or end causes the index to count backwards from the length of the list, so 0, -1 would delete the entire list. If Start is larger than End the list deleted is the exclusion of the entries; so 6, 4 would delete the entire list except for the 5th list entry.

Example

ll.DeleteSubList({}, 3.14, 3.14)
Raw function spec json
{
  "def": "func",
  "desc": "Removes the slice from start to end and returns the remainder of the list.\nRemove a slice from the list and return the remainder, start and end are inclusive.\nUsing negative numbers for start and/or end causes the index to count backwards from the length of the list, so 0, -1 would delete the entire list.\nIf Start is larger than End the list deleted is the exclusion of the entries; so 6, 4 would delete the entire list except for the 5th list entry.",
  "energy": 10,
  "sleep": 0,
  "must_use": true,
  "link": "https://wiki.secondlife.com/wiki/LlDeleteSubList",
  "private": false,
  "takesSelf": false,
  "name": "DeleteSubList",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "list"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Source",
          "desc": "",
          "type": [
            {
              "def": "simple",
              "value": "list"
            }
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Start",
          "desc": "",
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "End",
          "desc": "",
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll