• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: An alternative to "sort" & "uniq"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: An alternative to "sort" & "uniq"
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Re: An alternative to "sort" & "uniq" (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: An alternative to "sort" & "uniq"
  • Next by Date: Congratulations AppleScript guys
  • Previous by thread: Re: An alternative to "sort" & "uniq"
  • Next by thread: Re: An alternative to "sort" & "uniq"
  • Index(es):
    • Date
    • Thread