Re: choose-and-remove! operation John Cowan 12 Sep 2015 03:03 UTC

Taylan Ulrich Bayırlı/Kammer scripsit:

> Obviously the better (best?) name for this is hash-table-pop!.


> It's unfortunate that this conflicts with Gauche, but shouldn't one use
>     (pop! (hash-table-ref ht k) x)

One should, except that there is no SRFI for macros like pop!.  Someone
(hint, hint) should write one on top of SRFI 17.  A good starting place
would be the CLHS: <>.

Meanwhile, I'll flush -push and -pop.

John Cowan
What has four pairs of pants, lives in Philadelphia,
and it never rains but it pours?
        --Rufus T. Firefly