Re: Alternative formulations of keywords
Eli Barzilay 12 Apr 2006 03:20 UTC
On Apr 11, Eli Barzilay wrote:
>
> (I'll be using the syntax from our library, no time to read Marc's
> syntax, sorry.)
(Ugh, the above comment should have been removed... sorry*2.)
> (define (assoc x l #!key test)
> ... assoc using `test' to find an item ...)
>
> ;; searches for an x association in foo's table, same keywords as `assoc'
> (define (search x foo . r)
> (apply assoc x (foo-table foo) r))
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!