Fodor's lemma asserts that if $\kappa$ is a regular and uncountable cardinal, then if $f(\alpha)<\alpha$ for a stationary subset of $\kappa$, then it is constant on stationary subset.
Suppose $\kappa>\operatorname{cf}(\kappa)=\mu>\omega$, that is $\kappa$ is singular with uncountable cofinality.
What sort of conditions do we have to have in order to ensure a regressive function is constant on a stationary subset? Or is there a counterexample easily to be found which I could not come up with so far?
(In particular I'm interested in the case that the function is defined on an end segment)
Assume that $\kappa$ is a cardinal of uncountable cofinality. A sufficient (but not even close to necessary) condition for a regressive function $f:\kappa\to\kappa$ to be constant on a stationary subset of $\kappa$ is that $\lim(f)<\operatorname{cf}(\kappa)$ where $$ \lim(f)=\min\{\alpha\leq\kappa:f^{-1}[0,\alpha)\text{ is stationary}\}. $$ Indeed, if $\lim(f)=\beta<\operatorname{cf}(\kappa)$ then the stationary set $f^{-1}[0,\beta)=\bigcup_{\alpha<\beta}f^{-1}\{\alpha\}$ is a union of fewer than $\operatorname{cf}(\kappa)$ sets $f^{-1}\{\alpha\},\alpha<\beta$. Because every union of fewer than $\operatorname{cf}(\kappa)$ nonstationary sets is nonstationary, there must be such an $\alpha<\beta$ that $f^{-1}\{\alpha\}$ is stationary. Hence $f$ is constant on a stationary set.