def dict_partial_from_keys(keys):
    """Return a function that constructs a dict with predetermined keys."""
    def dict_partial(values):
        return dict(zip(keys, values))
    return dict_partial