Scheme allows an additional syntax for
(<test> => <recipient>)
evaluates to a true value, then
is evaluated. Its value must be a procedure of one argument; this procedure is then invoked on the value of the
, and the result is returned as the value of the
expression. For example
(cond ((assoc ’b ’((a 1) (b 2))) => cadr) (else false))
. Modify the handling of
so that it supports this extended syntax.
There are no comments yet.
You must log in to post a comment.Login