Let $A$ be a set, $K$ a non recursive set, and a total computable function $g$ such that $\forall x\exists n.x\in K \Leftrightarrow g(x, n)\in A$.
The question is if the function: $f(x)=a$ such that $x\in K \Leftrightarrow g(x, a)\in A$ is total computable.
Hence, can I prove $K\leq _m A$ with $g(x,f(x))$ as reduction function?