def append(field, item):
    """
    Appends item to a list at value `field`
    """
    def transform(element):
        if field not in element:
            element[field] = [item]
        else:
            element[field].append(item)
    return transform