Probably it's simple question, but I can't resolve my problem. I have two streams and want mapping second stream by negative value of first stream.
jsfiddle - example
var price = change.map(1).scan(10, plus)
var money = buy.map(-price).merge(sale.map(price)).scan(100, plus);