Some help: comparing lists

Started by netytan, December 31, 2005, 11:32:03 PM

Previous topic - Next topic

netytan

Hey all,



If you've seen my previous thread you'll know that I'm working on a sort program just for fun, I'm new to lisp and I thought it'd be a nice way to get to know it [by setting little tasks].



As part of this I need to be able to compare Lists of items and decide which comes first. This is proving to be harder than I thought it would be, I have my sorting program up to the point that I can express the way items are compared but have no idea how to do this on lists.



Could someone maybe give me an example involving comparing two lists. For obvious reasons this can't include the built-in function (sort).



I'm using CL but it shouldn't be a problem converting between the two so please post some examples.



Thanks,



Mark.