Accumulates the elements of a field starting from an initial through a transform function that includes the ID of the element. The local value of the field is not considered.