944,214 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Mar 16th, 2006
0

Lisp Programming defparameter

Expand Post »
Does anyone know about LISP Programming

I am trying to make this program where I have 3 types of cars, which are ford bmw merc

ford has focus and fiesta BMW has 1series and 2series and the merc has SK100 and SK200

well basically i am trying to put them in the correct list for example focus will go into ford list and SK100 will go to the merc list

at the moment to store the data i will use defparameter

example

(defparameter *cars* ' ( focus fiesta 1series 2series SK100 SK200))

so now i want to create a funtion where the cars will go into the correct list

if u have any idea please help
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coolman2006 is offline Offline
12 posts
since Mar 2006
Mar 16th, 2006
2

Re: Lisp Programming defparameter

just store the data in an organized fashion in the first place.
Team Colleague
Reputation Points: 1135
Solved Threads: 173
Super Senior Demiposter
Rashakil Fol is offline Offline
2,480 posts
since Jun 2005
Mar 16th, 2006
0

Re: Lisp Programming defparameter

no i gota use a proper function for it so (defun test-a-car 2) and den it puts these items in a list
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coolman2006 is offline Offline
12 posts
since Mar 2006
Mar 16th, 2006
0

Re: Lisp Programming defparameter

the 2 means 2 items per list and in the correct list
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coolman2006 is offline Offline
12 posts
since Mar 2006
Mar 16th, 2006
2

Re: Lisp Programming defparameter

Writing a function for this is less efficient than writing a list with these organized into sublists; in fact, a properly written procedure will contain such a list anyway.
Team Colleague
Reputation Points: 1135
Solved Threads: 173
Super Senior Demiposter
Rashakil Fol is offline Offline
2,480 posts
since Jun 2005
Mar 16th, 2006
0

Re: Lisp Programming defparameter

there gota be a way i mean i wanana do it so i run a funtion and i have a list of cars and those have got to go into the right type of cars at the moment there just in a list i want to put them in another list so fiesta goes to the ford list

so its sort it out. Sorting is the keyword here. u have a list of ramdon cars and u want to sort it into the correct category

please help!!! :lol:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coolman2006 is offline Offline
12 posts
since Mar 2006
Mar 16th, 2006
3

Re: Lisp Programming defparameter

So you'll need to use a list of categories in your function.
Team Colleague
Reputation Points: 1135
Solved Threads: 173
Super Senior Demiposter
Rashakil Fol is offline Offline
2,480 posts
since Jun 2005
Mar 16th, 2006
0

Re: Lisp Programming defparameter

how do I do that
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coolman2006 is offline Offline
12 posts
since Mar 2006
Mar 17th, 2006
0

Re: Lisp Programming defparameter

Please man u gota give some sort of code so i can work on it i dont know nothing about lisp

if (test-a-list 2) the two means put two cars in a list, but they must be sorted to the correct list, that what i have to do because i need to learn this staff i tried the internet and everything but i cant find nothing
Reputation Points: 10
Solved Threads: 0
Newbie Poster
coolman2006 is offline Offline
12 posts
since Mar 2006
Mar 17th, 2006
2

Re: Lisp Programming defparameter

Quote originally posted by coolman2006 ...
i dont know nothing about lisp
Then learn something about it.
Team Colleague
Reputation Points: 1135
Solved Threads: 173
Super Senior Demiposter
Rashakil Fol is offline Offline
2,480 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Software Magazine
Next Thread in Computer Science Forum Timeline: Object Oriented Programming





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC