Re: can I make a list of records?
Re: can I make a list of records?
- Subject: Re: can I make a list of records?
- From: Michelle Steiner <email@hidden>
- Date: Mon, 28 Jan 2002 23:56:37 -0700
On 1/28/02 4:17 PM, Nigel Garvey <email@hidden>
wrote:
>
Interesting. This is the standard behaviour when concatenating records
>
directly. If the same label appears in both, it only appears once in the
>
combined record and takes the value of the label in the left-hand source
>
record.
Curiouser and curiouser.
--Michelle
set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set the end of MyList to myFirstRecord
set the end of MyList to mySecondRecord
--> {a:3, b:4}
set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set MyList to MyList & myFirstRecord & mySecondRecord
--> {a:1, b:2}
set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set the end of MyList to {myFirstRecord}
set the end of MyList to {mySecondRecord}
--> {{a:3, b:4}}
set MyList to {}
set myFirstRecord to {a:1, b:2}
set mySecondRecord to {a:3, b:4}
set MyList to MyList & {myFirstRecord} & {mySecondRecord}
--> {{a:1, b:2}, {a:3, b:4}}
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------