(function (exports) {

    var itertools = {};

    itertools.ringIter = function (collection) {
        var idx = -1,
            lim = collection.length;

        return {
            next: function () {
                idx = (++idx) >= lim ? 0 : idx;

                return {
                    value: collection[idx],
                    done: false
                };
            }
        };
    };

    itertools.randomIter = function (collection) {
        
    };

    exports.itertools = itertools;

})(window);

'use strict';

(function (exports) {

    var itertools = {};

    itertools.ringIter = function (collection) {
        var idx = -1,
            lim = collection.length;

        return {
            next: function () {
                idx = (++idx) >= lim ? 0 : idx;

                return {
                    value: collection[idx],
                    done: false
                };
            }
        };
    };

    exports.itertools = itertools;

})(window);

Remove randomiter to silence jshint warnings.
Remove randomiter to silence jshint warnings.
