From Second Life Wiki
Revision as of 10:32, 13 July 2008 by Chaz Longstaff (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

== Function: list ListStridedMove( list dest, list src, integer start, integer end, integer stride ) ; ==

Moves something in a strided list to another place in the strided list.

See also: Strided Lists

<lsl> list ListStridedMove(list myList, integer src, integer dest) {

   string item = llList2String(myList, src);
   myList = (myList=[]) + llDeleteSubList(myList, src, src);
   myList = (myList=[]) + llListInsertList(myList, (list)item, dest + (dest > src));
   return myList;

} </lsl>