Folds a sequence of edits.
Folds a sequence of edits. If the sequence size is one, the only element is simply returned.
If the sequence is empty, None
is returned. Otherwise, a compound edit is returned.
the sequence of edits to collapse
the name to use for a compound edit. If the sequence size is less than or equal to one, this name is not used.