Generates an observable sequence by running a state-driven loop producing the sequence's elements, using the specified scheduler to send out observer messages.
// RxJS v6+import { generate } from'rxjs';generate(2, x => x <=38, x => x +3, x =>'.'.repeat(x)).subscribe(console.log);/*OUTPUT:....................................................................................................................................................................................................................................................................*/