Closure-ify merge_adjacent_partitions