In this case, we have $f(1, \lambda) = \text{tail}(\lambda)$. We can see that $k + \text{length}(f(k, \lambda)) = 1 + \text{length}(\text{tail}(\lambda)) = \text{length}(\lambda)$, which satisfies the given equation.
Now, let's assume that the equation holds for
Show more…