I need some explanation for [](int x){return x=x+5;}
. What does [] (int x)
mean?
I ran the varr.apply(incelemby5)
where incelemby5
increases array elements by 5. Got the same results
varr1 = varr.apply([](int x){return x=x+5;});
int incelemby5(int x) {
return x+5;
}