Advanced Iteration Theory

The art of iterating over an endless void.

Iterating Over Infinite Loops

Because who needs a finite number of items, anyway?

                for (var i = 0; i < Infinity; i++) {
                    // do something
                }
            
Learn more about iterating over infinite loops

Theoretical Iteration Schemes

Because math.

                // Scheme 1: Iterating over a fractal
                var fractal = {
                    "branch": {
                        "leaf": {
                            "stem": {
                                "root": {
                                    "leaf": {
                                        "stem": {
                                            "root": {
                                                // ...
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                };
                // Scheme 2: Iterating over a recursive function call
                function factorial(n) {
                    return n * factorial(n - 1);
                }
            
Explore the depths of theoretical iteration schemes

Remember, iteration is just a fancy way of saying "we gave up."