It seems to be a coercion issue: apparently applescript is trying to coerce to lists before it compares them, which is throwing something off internally. for example, the following all come out as true (even though they maybe shouldn’t):
{{5, 3}} is in {{4, 2}, {5, 3}, {6, 4}} {{"b"}} is in {{"a"}, {"b"}, {"c"}} {{5}} is in {{4}, {5}, {6}}
it’s peculiar, to say the least. I can see the pattern without seeing the reason behind it (yet). Subject: A Syntax Question
Date: July 7, 2014 at 2:46:49 PM PDT
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
|