|
Help in Lisp sorting
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, so it will sort the cars into an orgranised lisp when I ran the function. so the cars should be in a randam list but when i ran the function it should sort it into the correct list
(test-a-car 2) the 2 means 2 cars pair a list
ford (fiesta focus)
Merc (SK100 SK200)
BMW (1series 2series)
I have done all the searching in the Internet but I cant find nothing I have tried loads of things but i just hate lisp so please guide me somehow
|