Lisp Programming defparameter

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Lisp Programming defparameter

 
0
  #1
Mar 16th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,039
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
0
  #2
Mar 16th, 2006
just store the data in an organized fashion in the first place.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #3
Mar 16th, 2006
no i gota use a proper function for it so (defun test-a-car 2) and den it puts these items in a list
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #4
Mar 16th, 2006
the 2 means 2 items per list and in the correct list
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,039
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
0
  #5
Mar 16th, 2006
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.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #6
Mar 16th, 2006
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:
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,039
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
0
  #7
Mar 16th, 2006
So you'll need to use a list of categories in your function.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #8
Mar 16th, 2006
how do I do that
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #9
Mar 17th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,039
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
0
  #10
Mar 17th, 2006
Originally Posted by coolman2006
i dont know nothing about lisp
Then learn something about it.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC