• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List within a List


  • Subject: Re: List within a List
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 16 Mar 2001 22:16:35 -0800

On 3/16/01 9:46 PM, "Michelle Steiner" <email@hidden> wrote:

> On 3/16/01 7:47 PM, Paul Berkowitz <email@hidden> wrote:
>
>>> set theFirstList to {"A", "B"}
>>> set theSecondList to {"B", "C"}
>>> set newlist to theFirstList & {theSecondList}
>>> -->{"A", "B", {"B", "C"}}
>>>
>> Just don't concatenate like that too many times with the same list, or you
>> get memory stack (or is it heap?) problems.
>>
>> set end of theFirstList to theSecondList
>>
>> does not have these problems, although it wouldn't matter if you're just
>> doing the one operation.
>
> A lot depends on whether one needs to maintain the integrity both lists,
> and generate a third list, or whether it's OK to change any of the
> original lists.
>

Well, in that case:

set newList to theFirstList
set end of newList to theSecondList


--
Paul Berkowitz


References: 
 >Re: List within a List (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: List within a List
  • Next by Date: Re: commands in a string..
  • Previous by thread: Re: List within a List
  • Next by thread: Re: Program Linking as a guest (Solution: AutoGuest)
  • Index(es):
    • Date
    • Thread