"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function* range(start, end, inclusive = false, step) {
    if (step == null) {
        step = Math.sign(end - start) || 1;
    }
    if (inclusive) {
        for (let i = start; i <= end; i++) {
            yield i;
        }
    }
    else {
        for (let i = start; i < end; i++) {
            yield i;
        }
    }
}
exports.default = range;
