dist/iterable/operators.js
/** Play the given Iterable, and then play back that Iterable in reverse */
Play the given Iterable, and then play back that Iterable in reverse
Play the given Iterable and then play back that Iterable in reverse
function* doppler(it) {
    const buffer = [];
    for (const item of it) {
        buffer.push(item);
        yield item;
    }
    buffer.reverse();
    yield* buffer;
}
function * doppler ( it ) { const buffer = [ ] ; for ( const item of it ) { buffer . push ( item ) ; yield item ; } buffer . reverse ( ) ; yield * buffer ; }
Play the given Iterable, and then play back that Iterable in reverse
Play the given Iterable and then play back that Iterable in reverse