3
I have the function below. I would just like to understand who is X and what values it is reaching in the course of the function. I could not catch the debug. You don’t have to say the exact values literally, but as it is being measured. I am studying and I want to understand all this.
public int qualquerCoisa(int tamanho)
{
Func<int, int> calcFib = null;
calcFib = x => (x - 1 + x - 2);
return calcFib(tamanho);
}
The code above, I know it’s wrong. I just put it to say what I’m trying to do. The result would be: 0,1,1,2,3,5,8,13,21,34, i.e., a returned list or array.
– pnet
Please do not send code ready. I just need to understand so I can do and reach my conclusions.
– pnet
She should not have edited the question. She now asks something different from the original request, leaving the answers given in some way meaningless. Instead of editing you should give this question as closed and create a new one.
– ramaral
OK, I’ll remove the edit and close and do another.
– pnet