[racket-dev] Optional equality predicate for assoc and member

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Fri Apr 22 16:35:20 EDT 2011

At Fri, 22 Apr 2011 14:31:14 -0600,
Jay McCarthy wrote:
> Isn't that memf and assf?

Not exactly:
(member 1 '(1 2 3) my-equality-check?)
is equivalent to
(memf (lambda (x) (my-equality-check x 1)) '(1 2 3))
which is not as nice. Same for assoc/assf.

Vincent


Posted on the dev mailing list.