Re: List within a List
Re: List within a List
- Subject: Re: List within a List
- From: Michelle Steiner <email@hidden>
- Date: Fri, 16 Mar 2001 19:21:25 -0800
On 3/16/01 5:11 PM, Pier Kuipers <email@hidden> wrote:
>
How would I go about inserting a list into another list with vanilla AS?
>
What I am trying to do is something like this:
>
>
set theFirstList to {"A", "B"}
>
set theSecondList to {"B", "C"}
>
set theNewList to theFirstList & (theSecondList) as list
>
>
-- this results in:
>
--> {"A", "B", "B", "C"}
>
>
-- but what I am really looking for is:
>
-->{"A", "B", {"B", "C"}}
set theFirstList to {"A", "B"}
set theSecondList to {"B", "C"}
set theNewList to theFirstList & {theSecondList} as list
--> {"A", "B", {"B", "C"}}
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------