Re: Min function

2016-02-28 Thread [-hh]
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

Re: Min function

2016-02-28 Thread [-hh]
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 ___

Re: Min function

2016-02-28 Thread Terence Heaford
> 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

Re: Min function

2016-02-28 Thread Thierry Douez
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

Re: Min function

2016-02-28 Thread 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 language. Thanks again Terry > On 28 Feb 2016, at 11:14, Th

Re: Min function

2016-02-28 Thread Thierry Douez
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

Min function

2016-02-28 Thread 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 (myListOfNumbers) — based on return not comma All the best Terry ___ use-livecode mailing list