Switched type equality to a function

Yo.

I hope this makes sense.

Let me know if it needs improvement.


:+1: to using words for parameter names.