It would be nice if get() and put() worked on sets. put(S,v) is trivial, of course, and get(S) could be implemented as the equivalent of:
(delete(S, v := ?S), v)
Log in to post a comment.