<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDeleteSubList</id>
	<title>LlDeleteSubList - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDeleteSubList"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDeleteSubList&amp;action=history"/>
	<updated>2026-10-25T11:12:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlDeleteSubList&amp;diff=82&amp;oldid=prev</id>
		<title>Osgridadmin: /* Function: list llDeleteSubList( list src, integer start, integer end ); */</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDeleteSubList&amp;diff=82&amp;oldid=prev"/>
		<updated>2017-12-30T16:32:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Function: list llDeleteSubList( list src, integer start, integer end );&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: list llDeleteSubList( list src, integer start, integer end );==&lt;br /&gt;
Returns a list that is a copy of src but with the slice from start to end removed. &amp;lt;br&amp;gt;&lt;br /&gt;
• list 	src 	– 	source 	 &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	start 	– 	start index 	 &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	end 	– 	end index 	 &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
start &amp;amp; end support negative indexes. &amp;lt;br&amp;gt;&lt;br /&gt;
While the function result is different than src, src is not modified, remember to use or store the result of this function. &amp;lt;br&amp;gt;&lt;br /&gt;
The opposite function would be [[llListInsertList]]. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Specification&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;.5&amp;quot; style=&amp;quot;text-align:left&amp;quot;&lt;br /&gt;
! bgcolor=&amp;quot;black&amp;quot; | &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Index  !! bgcolor=&amp;quot;black&amp;quot; | &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Positive !! bgcolor=&amp;quot;black&amp;quot; | &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Negative &lt;br /&gt;
|-&lt;br /&gt;
| first || 0 || -length &lt;br /&gt;
|-&lt;br /&gt;
| last || Length - 1 || -1&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Mentally first translate any negative indexes into positive indexes&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
• If start &amp;lt;= end then the range operated on starts at start and ends at end. [start, end]&amp;lt;br&amp;gt;&lt;br /&gt;
• If start &amp;gt; end then the range operated on starts at 0 and goes to end and then starts again at start and goes to -1. [0, end] + [start, -1] &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Positive indexes past the length (after the last index), or negative indexes past the beginning (before the first index) are valid. The effects are predictable, the entries are treated as if they were there but were removed just before output.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
See negative indexes for more information.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
src = llDeleteSubList( src, start, end )&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        // Create a list of names&lt;br /&gt;
        list names = [&amp;quot;Anthony&amp;quot;, &amp;quot;Bob&amp;quot;, &amp;quot;Charlie&amp;quot;, &amp;quot;Diane&amp;quot;, &amp;quot;Edgar&amp;quot;, &amp;quot;Gabriela&amp;quot;];&lt;br /&gt;
 &lt;br /&gt;
        // Now let&amp;#039;s remove values at position 1 through 2.&lt;br /&gt;
        names = llDeleteSubList(names, 1, 2);&lt;br /&gt;
 &lt;br /&gt;
        // Result:&lt;br /&gt;
        // list names = [&amp;quot;Anthony&amp;quot;, &amp;quot;Diane&amp;quot;, &amp;quot;Edgar&amp;quot;, &amp;quot;Gabriela&amp;quot;];&lt;br /&gt;
 &lt;br /&gt;
        // Now let&amp;#039;s use an start number higher then our end number&lt;br /&gt;
        names = llDeleteSubList(names, 3, 1);&lt;br /&gt;
 &lt;br /&gt;
        // Result:&lt;br /&gt;
        // list names = [&amp;quot;Edgar&amp;quot;];&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llListInsertList]] 			&amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llListReplaceList]] 			&amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llList2List]] 			&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>