Closed iofjuupasli closed 8 years ago
This feature is supposed to be used when your items and collected result are of same type, i.e. obs.scan((a, a) => a)
. But in your case it's obs.scan((a, Function) => a)
, so you can't use it without seed, and should provide a seed of type a
.
It should be easy to then remove that first value. Try to use .skip(1)
or .changes()
.
For some reason I don't want to emit seed value
0
.If I omit seed value, then the first value becomes seed:
In my case it emits
function
. And that seems very strangeI think the best will be if without seed it applies transformation with
seed = undefined
. So I can do:Now I do this:
It works, but seems weird.
I think that this problem is not so specific for my task, so probably it can be fixed on library level