Re: minimum function?
Re: minimum function?
- Subject: Re: minimum function?
- From: Martin Orpen <email@hidden>
- Date: Wed, 06 Apr 2005 21:16:10 +0100
on 6/4/05 19:19, has at email@hidden wrote:
> I shouldn't boast too much if I were you: your script uses a woefully
> inefficient and wasteful algorithm that'd make even a junior-high CS student
> cringe.
Well, if I knew it was an exam piece I would have spent more than 3 minutes
writing it. It wasn't posted for its efficiency or its good looks, it was
posted because it was about twenty times faster than any of the scripts that
were posted prior to it in that thread.
I did try leaching a Python function later:
do shell script "python -c 'y=min([" & x & "]); print y'"
But that was slower than using sort (though faster than the previous
scripts.
--
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