|
From: | Gregory Marton |
Subject: | Re: [bug #22022] hashx-set! and -ref |
Date: | Thu, 17 Jan 2008 19:25:10 -0500 (EST) |
Yes, thank you. Apologies again for my carelessness. Grem
Gregory Marton <address@hidden> writes:Ack. I think I meant to replace assoc as well, with something like (lambda (k alist) (cdar alist)).That wouldn't be assoc-like. (lambda (k al) (car al)) accesses the correct level of alist structure, but would fault in the case where al is empty. So perhaps: (lambda (k al) (and (not (null? al)) (car al))). With this, the test passes - are you happy with that? Thanks, Neil
-- ------ __@ Gregory A. Marton http://csail.mit.edu/~gremio/ --- _`\<,_ . -- (*)/ (*) There's no place like /home ~~~~~~~~~~~~~~~~-~~~~~~~~_~~~_~~~~~v~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~
[Prev in Thread] | Current Thread | [Next in Thread] |