def compose_diffs(iterable_of_diffs):
 return Diff(changes=reduce((lambda x, y: x.extend(y.changes)), iterable_of_diffs, pvector().evolver()).persistent())

def compose_diffs ( iterable_of_diffs ) : return Diff ( changes = reduce ( ( lambda x , y : x . extend ( y . changes ) ) , iterable_of_diffs , pvector ( ) . evolver ( ) ) . persistent ( ) )
compose multiple diff objects into a single diff .