Search found 3 matches
- Tue Nov 29, 2011 12:31 pm
- Forum: Common Lisp
- Topic: Convert Scheme to Lisp (Recursive)
- Replies: 5
- Views: 7585
Re: Convert Scheme to Lisp (Recursive)
Thanks, guys. i didn't wrote these scheme functions, I found them online when I searched for Lisp. The way they named args and values made me confused. Now I can understand and can convert them to a similar common lisp function. (defun remove1 (x xs) (labels ((loop (a1 zs) (cond ((null a1) (reverse ...
- Mon Nov 28, 2011 9:10 am
- Forum: Common Lisp
- Topic: Convert Scheme to Lisp (Recursive)
- Replies: 5
- Views: 7585
Re: Convert Scheme to Lisp (Recursive)
gugamilare, thank you so much. Also, could you help me a little more: After created in the labels funtions, loop can be called only one time as the second argument. Is it possible to call loop more than one time and inside the body? (like my "min" function). Do you think there is a way to ...
- Mon Nov 28, 2011 1:33 am
- Forum: Common Lisp
- Topic: Convert Scheme to Lisp (Recursive)
- Replies: 5
- Views: 7585
Convert Scheme to Lisp (Recursive)
I'm using LISP for several months. I know that Scheme is very similar to LISP, but I cannot understand the following Scheme functions. I read somewhere on the internet that "let loop" is used to create a recursive functions, but its argument "let loop ((x x))" doesn't make sense ...