Re: Getting elements of a list
Re: Getting elements of a list
- Subject: Re: Getting elements of a list
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 16 Apr 2008 12:39:05 -0700
- Thread-topic: Getting elements of a list
set myList to {{1, 2}, {3, 4}, {5, 6}}
set {a, b, c} to myList
set firstITems to {first item of a, first item of b, first item of c}
Of course, if you have more than a handful of lists, this becomes rather
awkward.
What have you got against repeat loops? Repeat loops are our friends!
ES
> From: "Mark J. Reed" <email@hidden>
> Say I have a list of lists:
>
> set myList to {{1,2},{3,4},{5,6}}
>
> is there any way, without a repeat loop, to pluck a specific item of
> each of the sublists? something like
>
> first item of each item of myList
>
> doesn't work...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden