Closed aidancully closed 6 years ago
I note that ck_hs_apply
can be used to similar effect... I think this function is easier to work with, since it allows clients to avoid defining a callback.
Thanks for this! I'll review it later this week over Thanksgiving.
After discussion, folks decided to go with using ck_hs_apply
instead.
ck_hs_try_put
is likeck_hs_put
, except that it returns the old value from the hash-set if it exists.