merge_fields function

Merge the fields of two lists