fmap for dict like, not `f` should have signature `f::key->value->(key, value)`

def _(f, x):
    """
    fmap for dict like, not `f` should have signature `f::key->value->(key, value)`
    """
    result = {}
    for k, v in x.items():
        k_, v_ = f(k, v)
        result[k_] = v_
    return result