Reverse a list

Alex Tweedly alex at tweedly.org
Wed Feb 18 17:53:41 EST 2015


That's great - thank you for that !
-- Alex.

On 18/02/2015 20:39, Geoff Canyon wrote:
> On Tue, Feb 17, 2015 at 4:33 PM, Alex Tweedly <alex at tweedly.net> wrote:
>
>> Though it would be kinda cool to do a quick LC simulation showing visible
>> "animation" of the variable and index as it goes through the loop.
>>
> I did something like this:
>
> https://dl.dropboxusercontent.com/u/41182876/foreach.livecode
>
> It shows a field and parses through the field, highlighting each character
> in blue as it considers it, and marking CR in red.
>
> It has two buttons, one which simulates repeat for each line, another which
> simulates repeat with i = 1 to the number of lines. It then does something
> with each line.
>
> It logs the actual thing it is doing at each step along the way, so you can
> see the difference in steps taken, and gives an overall time for each
> simulation.
> _______________________________________________
> 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