Doc recursive value function.