• 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: List within a List - Thank you!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: List within a List - Thank you! (From: Pier Kuipers <email@hidden>)

  • Prev by Date: Re: List within a List - Thank you!
  • Next by Date: hide and go seek
  • Previous by thread: Re: List within a List - Thank you!
  • Next by thread: Re: List within a List
  • Index(es):
    • Date
    • Thread