Difference between revisions of "ListStridedUpdate"

From Second Life Wiki
Jump to: navigation, search
(New page: {{LSL Header}} __NOTOC__ <div id="box"> == Function: list ListStridedUpdate(list {{LSL Param|dest}}, list {{LSL Param|src}}, integer {{LSL Param|start}}, integer {{LSL...)
 
Line 1: Line 1:
 
{{LSL Header}} __NOTOC__
 
{{LSL Header}} __NOTOC__
 
<div id="box">
 
<div id="box">
== Function: [[list]] ListStridedUpdate([[list]] {{LSL Param|dest}}, [[list]] {{LSL Param|src}},  
+
== Function: [[list]] ListStridedUpdate( [[list]] {{LSL Param|dest}}, [[list]] {{LSL Param|src}},  
[[integer]] {{LSL Param|start}}, [[integer]] {{LSL Param|end}}, [[integer]] {{LSL Param|stride}}); ==
+
[[integer]] {{LSL Param|start}}, [[integer]] {{LSL Param|end}}, [[integer]] {{LSL Param|stride}} ) ;
 +
==
 
<div style="padding: 0.5em;">
 
<div style="padding: 0.5em;">
 
Updates part of a strided list.  
 
Updates part of a strided list.  

Revision as of 07:35, 13 July 2008

== Function: list ListStridedUpdate( list dest, list src, integer start, integer end, integer stride ) ; ==

Updates part of a strided list.

See also: Lists

<lsl> list ListStridedUpdate(list dest, list src, integer start, integer end, integer stride) {

   return llListReplaceList(dest, src, start * stride, end * stride + (stride - 1) );

}


</lsl>