(transitions, existing_transitions)
return existing_transitions
Merge two dictionaries of transitions together.

    :param Dict[int,List[int]] transitions:          Some transitions.
    :param Dict[int,List[int]] existing_transitions: Other transitions.

    :return Dict[int,List[int]]: The merge of the two parameters.
Merge two dictionaries of transitions together.
Merge two dictionaries of transitions together .
def merge_transitions(transitions, existing_transitions):
    """
    Merge two dictionaries of transitions together.

    :param Dict[int,List[int]] transitions:          Some transitions.
    :param Dict[int,List[int]] existing_transitions: Other transitions.

    :return Dict[int,List[int]]: The merge of the two parameters.
    """
    def _add_to_existing(address, values):
        if address in existing_transitions.keys():
            values += existing_transitions[address]
            values = list(set(values))
        existing_transitions.update({address: values})

    list(map(
        lambda x: _add_to_existing(x[0], x[1]),
        transitions.items()
    ))

    return existing_transitions
def merge_transitions ( transitions , existing_transitions ) : def _add_to_existing ( address , values ) : if address in existing_transitions . keys ( ) : values += existing_transitions [ address ] values = list ( set ( values ) ) existing_transitions . update ( { address : values } ) list ( map ( lambda x : _add_to_existing ( x [ 0 ] , x [ 1 ] ) , transitions . items ( ) ) ) return existing_transitions