0

gen function use

what are the uses of gen function and *function?

4th Aug 2019, 1:05 PM
liu Mr.
liu Mr. - avatar
3 Respostas
0
The feature of the gen function is that it preserves its state even if it finishes, and then when you invoke the function again it continues from that state
4th Aug 2019, 3:26 PM
Timur Myngbay
Timur Myngbay - avatar
0
It's useful when you make loops with some special requirements
4th Aug 2019, 3:28 PM
Timur Myngbay
Timur Myngbay - avatar
0
Thank you!
5th Aug 2019, 11:22 PM
liu Mr.
liu Mr. - avatar