Understand Generators

Sylvan LE DEUNFF
Written: 2023-06-22

Generator functions allow you to declare a function that behaves like an iterator, i.e. it can be used in a for loop.