Re: An alternative to "sort" & "uniq"
Re: An alternative to "sort" & "uniq"
- Subject: Re: An alternative to "sort" & "uniq"
- From: Martin Orpen <email@hidden>
- Date: Mon, 18 Apr 2005 12:23:55 +0100
on 18/4/05 11:02, Gary (Lists) at email@hidden wrote:
> Martin Orpen wrote [4/18/05 5:47 AM]:
>
>> If you keep the random number maximum equal to or less than the number of
>> items in the list the result appears to always be returned sorted.
>>
>> I¹m sure that there must be a method of returning the minimum & maximum items
>> from the list, but couldn¹t work out how :-(
>
> If you've convinced yourself that, given your suggested restraints, the
> values are returned sorted, then the min is item 1 and the max is last item,
> eh?
I only tested it a few times - so I'm not totally convinced and the method
therefore cannot be relied upon to get the min value.
There must be an obj-c method which grabs the min value without the need to
sort the entire array. I just can't find it...
Also, I'm thinking that it might be interesting to see if populating an
array using some kind of obj-c method is faster than using vanilla AS?
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden