Some programming languages allow you to create generators - lazily evaluated iterable objects that use a function to determine what the next item should be.
For example, Python allows:
def f():
x = 0
while True:
yield x
x += 1
To generate an infinite list of numbers.
What other syntax options exist for generators?