Definable functions on degrees