I'm working my way through H. Enderton's A Mathematical Introduction to Logic, and I'm trying to do as many problems as possible. I'm currently confused with exercise 10, page 224, chapter 3.3:
Assume that $R$ is a representable relation and that $g$ and $h$ are representable functions. Show that $f$ is representable, where $$f(\vec{a})=\begin{cases}g(\vec{a})\quad\text{if }\vec{a}\in R\\h(\vec{a})\quad\text{if }\vec{a}\notin R\end{cases}$$
This seems so trivial to me ($\vec{a}$ either is or is not in $R$, and both $g$ and $h$ are representable, therefore $f$ is too) that I think I've missed something.
Any comment?