Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - adamss3

#1
Anything else we might add? / Help with match
March 23, 2007, 10:55:50 AM
I've started using match and have run into a problem.  I want to store the items used for the search in variables and then use these in the match invocation.  In the code snippet below, I would have expected both printlns to show the same results.  I'm sure that this is something simple, but I'm not seeing it.



(set 'a 1)

(set 'b 2)

(set 'c '(0 1 3 2 4))

(println (match '( * 1 * 2 *) c))

(println (match '( * a * b *) c))

(exit)