Re: distinctUnionOfArrays
Re: distinctUnionOfArrays
- Subject: Re: distinctUnionOfArrays
- From: Shane Stanley <email@hidden>
- Date: Fri, 13 Nov 2015 20:17:39 +1100
On 13 Nov 2015, at 7:09 PM, Takaaki Naganoya <email@hidden> wrote:
Can we use “distinctUnionOfArrays” with NSArray ? It seems can’t do it...
set bArray to aDict's valueForKeyPath:"players.distinctUnionOfArrays.aLabel" --> (NSArray) {missing value, missing value, missing value}
I can never remember these operators. You have two problems there. First, distinctUnionOfArrays works with arrays of arrays, whereas you have just an array of objects. So you need distinctUnionOfObjects. Second, the operators need to be preceded by"@". So:
set bArray to aDict's valueForKeyPath:"email@hiddenl" --> (NSArray) {1,2}
|
_______________________________________________
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