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

List within a List


  • Subject: List within a List
  • From: Pier Kuipers <email@hidden>
  • Date: Sat, 17 Mar 2001 01:11:14 +0000

Hi all,

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"}}

Any help greatly appreciated.

Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *

2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754

http://www.visualid.com


  • Follow-Ups:
    • Re: List within a List
      • From: Emmanuel <email@hidden>
    • Re: List within a List
      • From: Paul Berkowitz <email@hidden>
    • Re: List within a List
      • From: email@hidden (Frank Watzl)
    • Re: List within a List
      • From: Devon and Cornwall <email@hidden>
  • Prev by Date: Re: Rounding numbers up
  • Next by Date: Re: Program Linking as a guest (Solution: AutoGuest)
  • Previous by thread: how to set mac os X
  • Next by thread: Re: List within a List
  • Index(es):
    • Date
    • Thread