listStridedUpdate

From Second Life Wiki
Revision as of 15:22, 22 January 2015 by ObviousAltIsObvious Resident (talk | contribs) (<lsl> tag to <source>)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

list ListStridedUpdate(list dest, list src, integer start, integer end, integer stride) {
    return llListReplaceList(dest, src, start * stride, ((end + 1) * stride) - 1 );
}

See also: Strided Lists

Examples

list customers = ListStridedUpdate(customers, update, 0, 0, STRIDELENGTH);