By replacement in $L_{\beta_0}$, there is no function from $\omega$ to $L_{\beta_0}$ that is definable over $L_{\beta_0}$ from parameters. Therefore no such function is in $L_{\beta_0+1}$. On the other hand, there is such a function in $L_{\beta_0+2}$. To see this, note that $L_{\beta_0}$ is pointwise definable in the sense that every element of $L_{\beta_0}$ is definable (without parameters) in $L_{\beta_0}$. This yields a partial surjection $f : \omega\to L_{\beta_0}$: let $(\varphi_n)_{n< \omega}$ be a recursive enumeration of all formulas in the language of set theory with one free variable, and define $f(n)$ to be the unique $a\in L_{\beta_0}$ such that $L_{\beta_0}\vDash \varphi_n(a)$ if such an $a$ exists, and $f(n) = \emptyset$ otherwise.
The function $f$ is definable over the structure $(L_{\beta_0},S)$ where $S$ is the satisfaction predicate for $L_{\beta_0}$, which for convenience let's take to be the set of pairs $(n,a)\in \omega\times L_{\beta_0}$ such that $L_{\beta_0}\vDash \varphi_n(a)$. Note that $S\in L_{\beta_0+2}$: each of its finite restrictions $S\cap (n\times L_{\beta_0})$, for $n < \omega$, is in $L_{\beta_0+1}$, and therefore $S$ can be defined in $L_{\beta_0+2}$ by Tarski's celebrated recursion. It follows that $f$ is in $L_{\beta_0+2}$ (i.e., is definable over $L_{\beta_0+1}$), since $f$ is definable over $L_{\beta_0}$ using the predicate $S$, which is itself definable over $L_{\beta_0+1}$.