?set-once-at ( value key assoc -- value' first-time? )


Vocabulary
assocs.extras

Inputs
valuean object
keyan object
assocan object


Outputs
value'an object
first-time?an object


Definition


: ?set-once-at ( value key assoc -- value' first-time? )
[ ?at not ] keep [ set-at ] curry [ keepd t ] curry
[ nip f ] if ;