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

Re: Sifting a list sans loop


  • Subject: Re: Sifting a list sans loop
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 27 Jan 2002 15:16:31 +1100

On 27/1/02 1:43 PM +1000, ehsan saffari, email@hidden, wrote:

> 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:

Just ask for the text (or strings) of the list:

set theList to {"one", "two", {1, 2}, "Three"}
text of theList
--> {"one", "two", "Three"}

--
Shane Stanley, email@hidden


References: 
 >Sifting a list sans loop (From: ehsan saffari <email@hidden>)

  • Prev by Date: Re: Not so sure (was Re: Scott Norton is brilliant (was:
  • Next by Date: Re: solutions to scripting addition terminology confilicts
  • Previous by thread: Re: Sifting a list sans loop
  • Next by thread: Re: Sifting a list sans loop
  • Index(es):
    • Date
    • Thread