<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 27, 2015 at 10:29 AM, Dan Gudmundsson <span dir="ltr"><<a href="mailto:dangud@gmail.com" target="_blank">dangud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>IMO it should behave as gb_trees:update/3, dict, orddict and maps  does, i.e. assume the key is present, you can not update something that is not there.</div><div></div></blockquote></div><br></div><div class="gmail_extra">The alternative is a function of the form (undefined | {value, Key, Value}) -> undefined | {ok, Value} | {error, Reason}. This allows the function to decide and in particular implement "upsert"-like functionality. This is not too far-fetched: OCaml's Core library calls the updater 'change' in this case.<br></div><div class="gmail_extra"><br clear="all"><br>-- <br><div class="gmail_signature">J.</div>
</div></div>