def assoc(d, key, value, factory=dict):
    d2 = factory()
    d2[key] = value
    return merge(d, d2, factory=factory)
Return a new dict with new key value pair
dataset/ETHPy150Open pytoolz/toolz/toolz/dicttoolz.py/assoc