• 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: Find index of list to find item in another list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Find index of list to find item in another list (From: Jim Skibbie <email@hidden>)
 >Re: Find index of list to find item in another list (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Find index of list to find item in another list
  • Next by Date: Selected iCal event
  • Previous by thread: Re: Find index of list to find item in another list
  • Next by thread: Re: Find index of list to find item in another list
  • Index(es):
    • Date
    • Thread