ListStridedMove
From Second Life Wiki
| Languages: |
English |
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
Contents |
Description
Function: list ListStridedMove( list myList, integer start, integer end, integer stride, integer target );Moves a stride from one position to another position.
Returns a list that contains the elements of myList but with the strides in the range of start to end moved to the stride position target.
| • list | myList | |||
| • integer | start | |||
| • integer | end | |||
| • integer | stride | |||
| • integer | target |
list ListStridedMove(list myList, integer start, integer end, integer stride, integer target) { if(stride <= 0) stride = 1; list item = llList2List(myList, start *= stride, end = ((stride * (end + 1)) - 1)); return llListInsertList(llDeleteSubList(myList, start, end), myList = item, destination * stride); }
See also: Strided Lists

