dist/iterable/operators.js
function take(count) {
    return function* (iterable) {
        let i = 0;
        for (const item of iterable) {
            if (i >= count) {
                return;
            }
            yield item;
            i = i + 1;
        }
    };
}
function take(count) {
    return function* (iterable) {
        let i = 0;
        for (const item of iterable) {
            if (i >= count) {
                return;
            }
            yield item;
            i = i + 1;
        }
    };
}
Take and yield the first N items in an iterable sequence