transformAfterIteration

Transform history after iteration completes. Return modified list.