withIndexField

A copy writing the index of each element to the field indexField.