Reverse a list

Dave Cragg dave.cragg at lacscentre.co.uk
Mon Feb 9 23:36:19 CET 2015


Yay.

But the speed is the same as my original. (On both 6.0.2 and 7.0.1)


> On 9 Feb 2015, at 22:25, Mark Wieder <mwieder at ahsoftware.net> wrote:
> 
> Note to self - paste the actual code...
> 
> function arevers p
>   local t
>   local tNumElems
> 
>   put the number of lines in p into tNumElems
>   split p by cr
>   put empty into t
>   repeat for each line l in the keys of p
>      put p[tNumElems] & cr after t
>      subtract 1 from tNumElems
>   end repeat
>   return t
> end arevers
> 
> -- 
> Mark Wieder
> ahsoftware at gmail.com
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list