dist/iterable/operators.js
function map(mapper) {
    return function* (iterable) {
        let index = 0;
        for (const value of iterable) {
            yield mapper(value, index);
            index = index + 1;
        }
    };
}
function map(mapper) {
    return function* (iterable) {
        let index = 0;
        for (const value of iterable) {
            yield mapper(value, index);
            index = index + 1;
        }
    };
}
function map ( mapper ) { return function * ( iterable ) { let index = 0 ; for ( const value of iterable ) { yield mapper ( value , index ) ; index = index + 1 ; } } ; }
Yield a new iterable sequence that applies the mapper to every item in the original
Yield a new iterable sequence that applies the mapper to every item in the original