rvalue index-series
auto index = [1, 2, 3, 4]; auto data = [10.0, 10, 10, 10]; auto series = index.series(data); auto rindex = [0, 2, 4, 5]; auto rdata = [1.0, 2, 3, 4]; auto rseries = rindex.series(rdata); series[] += rseries; assert(series.data == [10, 12, 10, 13]);
Special [] op= index-op-assign operator for index-series. Op-assigns data from r with index intersection. If a index index in r is not in the index index for this series, then no op-assign will take place. This and r series are assumed to be sorted.