• 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
Sifting a list sans loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sifting a list sans loop


  • Subject: Sifting a list sans loop
  • From: ehsan saffari <email@hidden>
  • Date: Sat, 26 Jan 2002 20:43:13 -0600

I have many lists of 2000-5000 items.
In each list each item is either a list or a string.
I need to discard the lists and keep the strings for further processing.
Is there a method (osax included) that would allow me to discard the list
items without using a loop:

repeat
if class of x is not list then ...
keep it
else
dump it
end if
end repeat

Would be really cool if one could apply a "whose" clause to lists!

thanks for any hints

cheers
ehsan


  • Follow-Ups:
    • Re: Sifting a list sans loop
      • From: Shane Stanley <email@hidden>
    • Re: Sifting a list sans loop
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Thanks for re: Applescipt Editors recommendations
  • Next by Date: Re: Problems with speed & issues with coercion in OS 9.2.2
  • Previous by thread: Thanks for re: Applescipt Editors recommendations
  • Next by thread: Re: Sifting a list sans loop
  • Index(es):
    • Date
    • Thread