Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Useful Subroutines List_Get_Reverse_Order_faster  

List_Get_Reverse_Order_faster

List_Get_Reverse_Order_faster

Category: Useful Subroutines
By : Void Singer
Created: 2010-02-01 Edited: 2010-02-01
Worlds: Second Life

the Zip file

Download all files for List_Get_Reverse_Order_faster
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. List_Get_Reverse_Order_faster_1.lsl
1 list uListRevS( list vLstSrc ){
2 integer vIntCnt = (vLstSrc != []);
3 @Loop; if(vIntCnt--){
4 vLstSrc += llList2List( vLstSrc, vIntCnt, vIntCnt );
5 vLstSrc = llDeleteSubList( vLstSrc, vIntCnt, vIntCnt );
6 jump Loop;
7 }
8 return vLstSrc;
9 }
10 /*//-- Anti-License Text --//*/
11 /*// Contributed Freely to the Public Domain without limitation. //*/
12 /*// 2009 (CC0) [ http://creativecommons.org/publicdomain/zero/1.0 ] //*/
13 /*// Void Singer [ https://wiki.secondlife.com/wiki/User:Void_Singer ] //*/
14 /*//--

Back to the Best Free Tools in Second Life and OpenSim.