common code patterns

Monte Goulding monte at appisle.net
Fri Aug 11 18:21:37 EDT 2017


> On 12 Aug 2017, at 8:06 am, Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
>> I guess we could have more explicit syntax here which might be more flexible too
>> repeat for each element tElement and key tKey in tArray ordered numeric ascending
> 
> I must be channeling Mark Waddingham here... I'm worried that the syntax is borderline not-xtalky. For instance, it's not obvious from looking at that whether tElement or tKey is sorted numerically. By guess is that you intend tKey to be sorted.

Ha… I hadn’t considered that you might want the elements sorted instead of the keys but of course you might… well I’m not sure I just know I’d really like to have a way to iterate sorted keys and elements…

Cheers

Monte


More information about the use-livecode mailing list