ListStridedMove

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

Jump to: navigation, search

== Function: list ListStridedMove(list myList, integer place, integer newplace ) ; ==

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

See also: Strided Lists

<lsl> list ListStridedMove(list myList, integer place, integer newplace) {

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

} </lsl>