def listdic_to_diclist(listdic: list):
    """
    Convert a list of discionaries into a dictionary of list

    :param listdic:
    :return:
    """

    diclist = {}
    for elem in listdic:
        for key in elem:
            if not(key in diclist):
                diclist[key] = []
            diclist[key].append(elem[key])

    return diclist