+ 6

code explain needed

I couldn't understand that how the value of n remains in this code https://code.sololearn.com/c9PA1zQfGFr0/?ref=app

19th Aug 2020, 2:05 PM
ABADA S
ABADA S - avatar
8 Answers
+ 2
~ swim ~ hello master😊
21st Aug 2020, 8:42 PM
ABADA S
ABADA S - avatar
+ 2
thank you master ~ swim ~ I got it
22nd Aug 2020, 6:00 PM
ABADA S
ABADA S - avatar
+ 1
lion ofcourse I did , I think these are two variables not one aren't?
20th Aug 2020, 9:49 PM
ABADA S
ABADA S - avatar
+ 1
I think I understood that but if at every call a new object is created how does n retrieve its value
22nd Aug 2020, 4:13 PM
ABADA S
ABADA S - avatar
0
I hope you noticed there are two n, one in main() and one in the first lambda returned by the function sequence().
20th Aug 2020, 3:15 AM
lion
lion - avatar