Hi Thierry,
I have to correct my remark:
At first, case 2 will loose some merits, because after the first replace
linesOfNumbers is already a comma separated list and remains that.
We should write it like that?
-- case 2
repeat nRepeat
put LinesOfNumbers into nn
replace return with comm
Nice comparison.
In 8.0.0-dp15 I have here with the large example 2.13 - 4.45 - 2.90.
**So case 1 wins. Clearly.**
Interesting. And good to know.
p.s.
min and max work also on arrays containing only numbers.
Has at about the speed of case 3.
hh
___
> On 28 Feb 2016, at 12:52, Thierry Douez wrote:
>
> Well, as I don't know your context,
> I'm not sure if speed is really a problem here?
Speed is not important for my immediate situation finding the max and min in a
series of numbers to generate chart axes
but as you say it could be import
2016-02-28 13:01 GMT+01:00 Terence Heaford :
> Thanks,
>
> That is a good solution which will also apply to Max.
>
> I just thought that anything that can be rolled into the engine would be
> faster and
> usually every tick/millisecond that can be gained is worth having in an
> interpreted languag
Thanks,
That is a good solution which will also apply to Max.
I just thought that anything that can be rolled into the engine would be faster
and
usually every tick/millisecond that can be gained is worth having in an
interpreted language.
Thanks again
Terry
> On 28 Feb 2016, at 11:14, Th
What about this?
return min( replaceText( myListOfNumbers, "\n",comma))
2016-02-28 12:05 GMT+01:00 Terence Heaford :
>
> I thought Min may work with the itemDelimiter but apparently not.
>
> Is that something that would be useful?
>
> set the itemDelimiter to return
>
> return Min (myListOfNu
I thought Min may work with the itemDelimiter but apparently not.
Is that something that would be useful?
set the itemDelimiter to return
return Min (myListOfNumbers) — based on return not comma
All the best
Terry
___
use-livecode mailing list