Re: List within a List - Thank you!
Re: List within a List - Thank you!
- Subject: Re: List within a List - Thank you!
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 17 Mar 2001 09:05:37 -0800
On 3/17/01 8:46 AM, "Pier Kuipers" <email@hidden> wrote:
>
Thank you all for your contributions, I have the problem solved for
>
once and for all. I'll stick with Emmanuel's and Paul's suggestion
>
for now:
>
>
> set theNewList to {"A", "B"}
>
> set theSecondList to {"B", "C"}
>
> set end of theNewList to theSecondList
>
>
BTW, there's more added to the list after inserting the list, so I'll
>
end up with something like
>
>
set theList to {"A", "B"}
>
set theNewList to {"B", "C"}
>
set end of theList to theNewList
>
set theList to theList & "D"
>
return theList
>
>
--> {"A", "B", {"B", "C"}, "D"}
>
On the same principles, you should do:
set theList to {"A", "B"}
set theNewList to {"B", "C"}
set end of theList to theNewList
set end of theList to "D"
return theList
--{"A", "B", {"B", "C"}, "D"}
--
Paul Berkowitz