| | |
Lisp Programming defparameter
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
Sigh...
If you don't know anything about the language you're using, how do you expect to do anything useful with it? Are you just going to go around asking people to write code for you, without learning anything?
Here's one book you can buy:
http://www.paulgraham.com/acl.html
Here is a pdf to On Lisp, which assumes you know a bit about the language already...
http://www.paulgraham.com/lib/paulgraham/onlisp.pdf
There are countless resources for learning this language online, and I am not in the mood to tell you basics that you could look up for yourself.
If you don't know anything about the language you're using, how do you expect to do anything useful with it? Are you just going to go around asking people to write code for you, without learning anything?
Here's one book you can buy:
http://www.paulgraham.com/acl.html
Here is a pdf to On Lisp, which assumes you know a bit about the language already...
http://www.paulgraham.com/lib/paulgraham/onlisp.pdf
There are countless resources for learning this language online, and I am not in the mood to tell you basics that you could look up for yourself.
All my posts may be redistributed under the GNU Free Documentation License.
And here's the one I was looking for:
http://www.gigamonkeys.com/book/
http://www.gigamonkeys.com/book/
All my posts may be redistributed under the GNU Free Documentation License.
Your problem is that you don't have a function named Ford, and that's what your Lisp interpreter is looking for. If you want to assign a list to the value, you should assign a list; right now your code wants to call a procedure named Fieata, too...
All my posts may be redistributed under the GNU Free Documentation License.
Watch out with variable names...especially in this situation: CAR is a function in Lisp, so I would name the variable *cars* instead.
It's also not working, because you haven't defined the symbols Ford, Fiesta, Focus and Mondeo anywhere. Unless you want to define them like this:
I hope you find this of some use - even though this thread is approximately 10 months old.
NOTE: When discussing Lisp, all functions are always typed in caps.
NOTE: If you don't know what CONS lists are, look them up - they're almost always one of the first things covered in any Lisp book/reference.
It's also not working, because you haven't defined the symbols Ford, Fiesta, Focus and Mondeo anywhere. Unless you want to define them like this:
(defparameter car-name (cons "car model" "car brand")), you will have to assign them as strings in lists: (defparameter *cars* (cons "Ford" (list "Focus" "Fiesta" "Mondeo")))I hope you find this of some use - even though this thread is approximately 10 months old.
NOTE: When discussing Lisp, all functions are always typed in caps.
NOTE: If you don't know what CONS lists are, look them up - they're almost always one of the first things covered in any Lisp book/reference.
Last edited by indienick; Jan 22nd, 2007 at 3:09 pm.
Angel-headed hipsters burning for the ancient heavenly connection, to the starry dynamo in the machinery of the night.
-Ginsburg
Don't tell me to "google it" - I already have.
-Ginsburg
Don't tell me to "google it" - I already have.
![]() |
Similar Threads
- Lisp Programming! (Perl)
Other Threads in the Computer Science Forum
- Previous Thread: Software Magazine
- Next Thread: Object Oriented Programming
| Thread Tools | Search this Thread |
Tag cloud for Computer Science
ai algorithm algorithms amazon assignment assignments automata battery bigbrother binary bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware connect conversion csc data dataanalysis dataintepretation development dfa dissertation dissertationtopic ebook energy extensions floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod jobs laser laws linkbait lsmeans mainframes mining mobileapplication msaccess nano netbeans networking news os p2p parser piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying sql stephenfry study supercomputer supercomputing sweden technology textfield tree turing turingtest virus warehouse ww2






