Difference between revisions of "ListStridedRemove"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 43: Line 43:
|notes
|notes
|cat1=Examples
|cat1=Examples
|cat2
|cat2=UD_Functions
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 09:44, 25 May 2010

Summary

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

Removes each stride from a list, example a list of 1,2,3,A,1,2,3,A after ListStridedRemove(list,4,0,4); would be 1,2,3,1,2,3
Returns a list

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

created fixed and improved by Madpeter Zond <lsl> list ListStridedRemove(list src, integer start, integer end, integer stride) {

   if((start < 1)

Examples

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