?change-of ( ..a assoc key quot: ( ..a value -- ..b newvalue ) -- ..b assoc )


Vocabulary
assocs.extras

Inputs
assocan object
keyan object
quota quotation with stack effect ( ..a value -- ..b newvalue )


Outputs
assocan object


Definition


: ?change-of
( ..a assoc key quot: ( ..a value -- ..b newvalue ) -- ..b assoc )
[ set-of ] compose [ 2dup ?of ] dip [ 2drop ] if ; inline