Generating Fibonacci numbers with an enumerator
for i in Fibonacci(10) do Writeln(i);Of course you need a Fibonacci-implementing enumerator. I wrote one on 2007 and it uses the iterative approach. Read more in my old article Fun with enumerators, part 6 – generators.
Generating Fibonacci numbers with anonymous methods
This one was prepared for ITDevCon 2011 as an example of tricky (but pretty much useless) example of what can be done using anonymous methods.