Is there any existing function (in Base or standard libraries) to do essentially the following:

```
≅(x::T, y::T) where {T} = x == y
≅(x, y) = false
```

?

Is there any existing function (in Base or standard libraries) to do essentially the following:

```
≅(x::T, y::T) where {T} = x == y
≅(x, y) = false
```

?

1 Like

I don’t think there is a function specifically for this, but as you have shown, is easy to define one. Cf

```
typeof(x) === typeof(y)
```