If you've used RxJS for any meaningful amount of time, you've probably encountered scan().

Maybe you've seen code like this:

interval(1000)

.pipe(

scan(