mapRuns

Transform each (non-null) range of the receiver via a transform function, yielding another RunTree with the same ranges and corresponding transformed values. If the transform produces a null, that range is dropped in the output. If two or more contiguous ranges transform into non-null ResultValues that are equal, they will be collapsed into a single range in the output.