Search found 8 matches
- Tue Sep 06, 2011 9:15 am
- Forum: Common Lisp
- Topic: please help me understand this lisp function
- Replies: 7
- Views: 12333
Re: please help me understand this lisp function
Note that (I believe) it is impossible for a node with element E to exist unless also a leaf exists with that same element. Thus the latter scenario of the preceding paragraph can safely be excluded from consideration. (This assuming elements have all been inserted using the provided procedures and...
- Sun Sep 04, 2011 11:58 am
- Forum: Common Lisp
- Topic: please help me understand this lisp function
- Replies: 7
- Views: 12333
Re: please help me understand this lisp function
If you remove E from (:elm k :left E :right subtree) then the result is subtree. But what if the situation is like this: (:elmt E :left k :right subtree). *If N is returned, then the element was not found in the tree. It's this part that confuses me. It seems like N could be returned if elmt = E.
- Thu Sep 01, 2011 2:40 pm
- Forum: Common Lisp
- Topic: please help me understand this lisp function
- Replies: 7
- Views: 12333
please help me understand this lisp function
Hello, I'm a complete newbie to lisp, and I'm going through a tutorial and getting confused. I'm wondering if someone can help me out. The tutorial is here: http://www.cs.sfu.ca/CC/310/pwfong/Lisp/3/tutorial3.html, and the part I'm having trouble with is this: (defun BST-remove (B E) "Remove E ...
- Tue Aug 09, 2011 10:07 am
- Forum: Common Lisp
- Topic: trying to run LISP code in LispIDE
- Replies: 5
- Views: 10927
Re: trying to run LISP code in LispIDE
I guess you're right, it doesn't include an implementation. Fortunately, I had another lisp download in another folder, and after a bit of trial and error, I found an .exe in that folder that brings up an command line lisp interpreter. I actually realized I could just run this .exe without having to...
- Mon Aug 08, 2011 1:03 pm
- Forum: Common Lisp
- Topic: trying to run LISP code in LispIDE
- Replies: 5
- Views: 10927
Re: trying to run LISP code in LispIDE
You're supposed to just type it directly at the "command prompt" I don't know how to start Lisp from the command prompt. Go to Settings => Set Lisp Path and navigate to your CL implementation. Choose the .exe file. The only .exe files I get are LispIDE.exe and unins000.exe. If I choose Li...
- Fri Aug 05, 2011 2:46 pm
- Forum: Common Lisp
- Topic: trying to run LISP code in LispIDE
- Replies: 5
- Views: 10927
trying to run LISP code in LispIDE
First of all, I know nothing about Common Lisp or any kind of Lisp. I am just begining to learn. So I downloaded LispIDE in order to have an environment in which I can experiment. I wrote a very simple program: (* 2 (cos 0) (+ 4 6)) which, according to this website, should print out 20.0. Well, I'm ...
- Wed Aug 03, 2011 12:19 pm
- Forum: Common Lisp
- Topic: newbie at lisp - please help
- Replies: 6
- Views: 7662
Re: newbie at lisp - please help
Thanks everyone for your feedback. Sorry it took so long to reply.
- Thu Jul 28, 2011 1:29 pm
- Forum: Common Lisp
- Topic: newbie at lisp - please help
- Replies: 6
- Views: 7662
newbie at lisp - please help
Hello,
I am just beginning to learn LISP and I'm looking for a LISP compiler/interpreter that I can download and install (an environment in which I can practice programming in LISP). Can anyone point me in the right direction? I have Windows XP.
I am just beginning to learn LISP and I'm looking for a LISP compiler/interpreter that I can download and install (an environment in which I can practice programming in LISP). Can anyone point me in the right direction? I have Windows XP.