I'm trying to sort a list of (d x y) where x and y define a point, and d is a distance from that point to some other point, by the distance.
(sort lis2 '(lambda (p1 p2) (< (car p1) (car p2))))
That produces an invalid predicate error. What am I doing wrong?
(sort lis2 '(lambda (p1 p2) (< (car p1) (car p2))))
That produces an invalid predicate error. What am I doing wrong?