shilling for my feature request [1926]

Mark Brownell gizmotron at
Sun Aug 22 18:46:25 EDT 2004

On Sunday, August 22, 2004, at 01:25 PM, Alex Tweedly wrote:

> Nevertheless, returning a comma-separated list would be much nicer 
> than an array.
>>  or, as in most return values, a simple comma-delimited list: 1,10,20.
> -- Alex.

Interesting choice. An array could be one split away if you needed it.

So let's say that you have hundreds of points either in an array or 
comma delimited. What would be the fastest way to get the value of the 
item just less than 100 in this following example?

1, 34, 67, 99, 109, 121, 133, 144, 155, (answer = item 4) -- 99

Would I have to loop through each one checking each during a repeat for 
the last item less-than 100 or is there a faster way to get the value 
in item 4. Every time I can drop a repeat loop seems to be a way to 
optimize the result based on speed issues.


More information about the Use-livecode mailing list