listStridedMove
Revision as of 17:16, 14 July 2008 by Strife Onizuka (talk | contribs)
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
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 is myList 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 |
<lsl>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); return llListInsertList((myList = []) + llDeleteSubList(myList, start, end), item, destination * stride);
}</lsl>
See also: Strided Lists