Re: Find index of list to find item in another list
Re: Find index of list to find item in another list
- Subject: Re: Find index of list to find item in another list
- From: Skeeve <email@hidden>
- Date: Fri, 03 Jul 2009 19:13:42 +0200
Mark J. Reed schrieb:
See thread here: http://forums.macosxhints.com/archive/index.php/t-89313.html
Short answer: no, you can't find the index of a desired item in a list
without looping through the list.
Except if the list is sorted. Then you can do a binary search and need
not look at (at most) n element but just at log(n)/log(2) elements.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden