import { interval , range , zip } from 'rxjs' ; import { skip , skipLast , skipWhile , take , takeLast , takeWhile } from 'rxjs/operators' ; const num$ = range ( 0 , 5 ) ; const pair$ = zip ( num$ , num$ . pipe ( skip ( 1 ) ) ) ; const subscription = pair$ . subscribe ( { next : item => console . log ( `Next: ${ item }` ) , complete : ( ) => console . log ( 'Done' ) } ) ;