from typing import OrderedDict


def _list_to_dict(items):
    """ Convert a list of dicts to a dict with the keys & values aggregated

    >>> _list_to_dict([
    ...     OrderedDict([('x', 1), ('y', 10)]),
    ...     OrderedDict([('x', 2), ('y', 20)]),
    ...     OrderedDict([('x', 3), ('y', 30)]),
    ... ])
    OrderedDict([('x', [1, 2, 3]), ('y', [10, 20, 30])])
    """
    d = OrderedDict()
    for item in items:
        for k, v in item.items():
            if k not in d:
                d[k] = []
            d[k].append(v)
    return d