I am trying to understand what mechanism is used by in
to compare the needle and the haystack.
[] in ([],[],[])
isTrue
, so it cannot beis
, because[] is []
isFalse
- But
math.nan in ([],[],math.nan)
isTrue
, too, so it cannot be==
, becausemath.nan==math.nan
isFalse
.
If it is neither ==
(comparison for equal value) nor is
(comparison for object identity), what is it?