Yet, I am still able to read and write to i variable inside the lambda expression.
Cu toate acestea, pot în continuare să accesez și să modific valoarea variabilei i, în interiorul expresiei lambda.
Still, I still had to use () when I declared the lambda expression, so that the compiler understands that it has no parameters.
Totuși, a trebuit să folosesc () când am declarat expresia lambda, astfel încât compilatorul să înțeleagă că aceasta nu are parametri.
This means that the lambda expression does not get unwrapped in our Program class, as the compiler does with all lambda expressions, it gets unwrapped inside a nested class of its own, for the single reason of being a closure.
Aceasta înseamnă că expresia lambda nu este desfășurată în clasa Program, așa cum face compilatorul cu toate expresiile lambda, ci este desfășurată într-o clasă proprie imbricată, din singurul motiv de a fi o closure.
In this case, I declared i variable outside the lambda expression, in the body of my Main method.
În acest caz, am declarat variabila i în afara expresiei lambda, în interiorul corpului metodei mele Main.
For example, the lambda expression below implements a tree data structure when supplied with parameters for a leftSubTree and rightSubTree.
De exemplu, expresia lambda de mai jos implementează o structură de arbore de date când îi sunt furnizați parametrii pentru un leftSubTree și un rightSubTree.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.
No results found for this meaning.
Synonyms and analogies of "the lambda expression" in English