• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A Syntax Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >A Syntax Question (From: Gil Dawson <email@hidden>)

  • Prev by Date: Re: last modified file - how to catch?
  • Next by Date: Re: A Syntax Question
  • Previous by thread: Re: A Syntax Question
  • Next by thread: Re: A Syntax Question
  • Index(es):
    • Date
    • Thread