Given the alphabet $A = \{a,b\}^*$ and function
$\operatorname{equals}(q,w) = \begin{cases} a, & \text{if } q = w \\ \epsilon, & \text{otherwise} \end{cases}$
How to define primitive recursive function to one above? Just the idea, without proofs will be sufficient for me.