InterviewBuddy
All interview questions

What is a generator function?

Advanced

Answer

A generator can pause at yield and resume later through its iterator. It is useful for lazy sequences and controlled iteration.