Clone of smartmatch operator
