Ideal test conditions.
Realize that partial_sum exactly replaces my convoluted transformation.