On Dec 15, 5:34 pm, Paul Reiners wrote:
> I have the following Clojure code and I'm not sure why it's not
> working:
>
> (defn match (x y &optional binds)
> (cond
> ((eql x y) (values binds t))
> ((assoc x binds) (match (binding x binds) y binds))
> ((assoc y binds) (match x (binding
> I have the following Clojure code and I'm not sure why it's not working:
The short answer is: That's not Clojure code, it is Common Lisp code.
Longer answer: Despite having similar-looking syntax, the two are not
particularly related. Of the functions/macros you tried to use, I
think only "and
On Monday 15 December 2008 09:34, Paul Reiners wrote:
> I have the following Clojure code and I'm not sure why it's not
> working:
>
> (defn match (x y &optional binds)
> (cond
>((eql x y) (values binds t))
>((assoc x binds) (match (binding x binds) y binds))
>((assoc y binds) (match