Search found 2 matches
- Tue Oct 30, 2012 8:14 pm
- Forum: Common Lisp
- Topic: match pattern
- Replies: 1
- Views: 5899
match pattern
I am having problems with this function. What I have worked so far is that it checks for variable that are denoted by "?" For instance variable x is denoted by (? x). so what Im looking to do with it is given two list for instance: ïƒ (match '(A (? X) (? Y)) '(A (E F) G)) (T ((X (E F)) (Y...
- Wed Oct 10, 2012 7:33 pm
- Forum: Common Lisp
- Topic: replace string with another
- Replies: 2
- Views: 5653
replace string with another
I have issue trying to make this work..what I am supposed to do is to change a string for another one given For instance if (my-replace '(a (b c) d) '(b c) 'x) -> ( axd ) -->this is what the result should be My code is the following, please help * (defun my-replace( s1 s2 s3) (cond ((null s1) "...