import { Observable, distinct } from '@hullo/core';
new Observable(observer => {
observer.next(Math.round(Math.random() * 100));
// pick only those higher than the last by two
distinct((last, next) => last + 2 < next)
next: v => { console.log(v, 'is an even number') }