Andrei Alexandrescu:
>Searching an array literal vs. an array variable is not a special case.<

if (5 in [1, 2, 5]) { ... // OK
if (5 in [1, 2, 5].dup) { ... // not OK

If you can't see a special case there you are blind.

Bye,
bearophile

Reply via email to