Re: Sifting a list sans loop
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