Arrays: new and old keys, i

Mark Brownell gizmotron at earthlink.net
Sat Sep 13 12:53:51 EDT 2008


>peoplelist = [[name:"Tom",height:"72",city:"New York"], 
>[name:"Dick",height:"68",city:"San Francisco"], 
>[name:"Harry",height:"74",city:"New York"]]
>
>put peoplelist
>-- [[#name: "Tom", #height: "72", #city: "New York"], [#height:  
>"68",#name: "Dick",  #city: "San Francisco"], [#name: "Harry",  
>#height: "74", #city: "New York"]]
>
>put peoplelist[1].name
>-- "Tom"
>put peoplelist[2].name
>-- "Dick"
>
>put peoplelist[3]
>-- [#name: "Harry", #height: "74", #city: "New York"]
>
>You'll notice that it didn't matter where the #name entry was, the  
>name was still found ok.
>


Now it's coming back to me, Parameter Lists. Data could go the same way nesting inside of nesting with comma delimited lists within lists.

I'm going to do some experimenting now with Rev, or, have you already discovered these array within array tricks in single lines of code?





More information about the use-livecode mailing list