ListStridedRemove

From Second Life Wiki
Revision as of 16:32, 14 July 2008 by Strife Onizuka (Talk | contribs)

Jump to: navigation, search

Summary

Function: list ListStridedRemove( list src, integer start, integer end, integer stride );

Removes a specified part of a strided list.
Returns a list that contains the elements of myList but with the strides in the range of start to end removed.

• list src
• integer start
• integer end
• integer stride

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

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

}</lsl>

See also: Strided Lists

Examples

<lsl>list customers = ListStridedRemove(customers, 0, 0, STRIDELENGTH);</lsl>