Skip to content

SameQ

SameQ(x, y)
x===y

returns True if x and y are structurally identical.

See

Examples

Any object is the same as itself:

>> a===a
True

Unlike Equal, SameQ only yields True if x and y have the same type:

>> {1==1., 1===1.}
{True,False}

Equal, Unequal, UnsameQ

Implementation status

  • ✅ - full supported

Github