Email list hosting service & mailing list manager


Re: Fwd: [srfi-126] Draft #3. (#2) John Cowan 12 Sep 2015 22:22 UTC

Scripsi:

> This seems like overkill: if that's what you want proc to return, it can
> return it, and if you only care about some of it, you arrange for proc
> to return what's useful to you.

Oh, wait, I misread it.  I like this best:

(hash-table-find pred table [ failure [ success ] ])

Pred decides what association to use, failure and success process it.

However, I'm now thinking that the success procedure should get both
key and value throughout SRFI-125, rather than just value.

--
John Cowan          http://www.ccil.org/~cowan        xxxxxx@ccil.org
Knowledge studies others / Wisdom is self-known;
Muscle masters brothers / Self-mastery is bone;
Content need never borrow / Ambition wanders blind;
Vitality cleaves to the marrow / Leaving death behind.    --Tao 33 (Bynner)