Process a subset of the stream and put the result in place