Categories

I know that these question might be hard to answer but I will ask anyway just in case.
For my fractals presentation I need to use an interator of some sort in order for the computer not to run into a runtime error since fractals technically go forever.
I am looking for advice on to how to do it the most efficient way, and I know iterators might help.
(To answer these you might or might not have to read a little about recursion or fractals.)