Re: A Syntax Question
Re: A Syntax Question
- Subject: Re: A Syntax Question
- From: Emmanuel LEVY <email@hidden>
- Date: Tue, 08 Jul 2014 10:12:02 +0200
"is in" is not an operator between "elements" and "lists".
"is in" is an operator between lists.
Usually you don't care because when AS sees that one of the operands is not a list it coerces it to list.
But when both of them are already lists, you run exactly what you write.
Best,
Emmanuel
On Jul 7, 2014, at 11:46 PM, Gil Dawson wrote:
> Is it easy to see why "{5, 3} is in {{4,2}, {5, 3}, {6, 4}}" returns false?
>
> i.e.,
>
> log "{5, 3} is in {{4,2}, {5, 3}, {6, 4}} = " & ¬
> ({5, 3} is in {{4, 2}, {5, 3}, {6, 4}})
>
>
> --> (*{5, 3} is in {{4,2}, {5, 3}, {6, 4}} = false*)
>
> Something I'm missing here... Time to learn something.
>
> --Gil
>
>
> _______________________________________________
> 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
_______________________________________________
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