ListStridedMove
Revision as of 11:38, 13 July 2008 by Chaz Longstaff (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
== 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>