from functools import reduce

__author__ = "<NAME>"
__email__ = "<EMAIL>"
__license__ = "MIT"


def extend(*dicts):
    def update(acc, curr):
        acc.update(curr)
        return acc

    return reduce(update, dicts, {})

from functools import reduce

__author__ = "<NAME>"
__email__ = "<EMAIL>"
__license__ = "MIT"


def extend(*dicts):
    def update(acc, curr):
        acc.update(curr)
        return acc

    return reduce(update, dicts, {})
