Hey there, how can I use `scan` where the accumula...
# rx
r
Hey there, how can I use
scan
where the accumulation function has 2 arguments of different types?
l
Copy code
Observable.just("Hello", "World")
      .scan(0) { acc, it -> acc + it.length }
      .subscribe(::println)
seems to work fine
u
Yeah, you need to use the overloaded version with a seed value