I would like to do this according to the scheme:
if ((car l) != (car (cdr (order l))) do something
in particular, I wrote this:
((eq? (car l) (car (cdr (order l))) ) (cons (count (car (order l)) (order l)) (count_inorder_occurrences (cdr (order l)))))
but it compares (car l) with (car (cdr (order l)) for equality. I want to do something instead only if eq? is false. How can I do this in my example?
thanks
Frank source share