my progress in Lisp is continuing mainly thanks to your help. Thanks a lot.
Now there is small question.
I want to sort a list of following shape:
((a1 x1 (something1)) (a2 x2 (something2)) ... (an xn (something)))
using predicate (< ai aj) for any i, j.
I did it following way:
Code: Select all
(sort '(--- my list ---) #'(lambda (x y) (< (car x) (car y))))
Code: Select all
(sort '(--- my list ---) #'< :key 'car)
Are these two ways identical (according to 'EVAL of course' , which is 'more functional''?
The answer is important for me, because I still do not know how complicated will be the structure in my project, so probably I would like to write " < " relation myself.
Best regards, A.