Difference between revisions of "ListStridedUpdate"
Jump to navigation
Jump to search
m |
Ugleh Ulrik (talk | contribs) |
||
Line 26: | Line 26: | ||
|notes | |notes | ||
|cat1=Examples | |cat1=Examples | ||
|cat2 | |cat2=UD_Functions | ||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 09:44, 25 May 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: list ListStridedUpdate( list dest, list src, integer start, integer end, integer stride );
Updates part of a strided list.
Returns a list that contains the elements of dest but with the strides in the range of start to end replaced with all the elements from src.
• list | dest | |||
• list | src | |||
• integer | start | |||
• integer | end | |||
• integer | stride |
<lsl>list ListStridedUpdate(list dest, list src, integer start, integer end, integer stride) {
return llListReplaceList(dest, src, start * stride, ((end + 1) * stride) - 1 );
}</lsl>
See also: Strided Lists
Examples
<lsl>list customers = ListStridedUpdate(customers, update, 0, 0, STRIDELENGTH);</lsl>