@vnikolov @oantolin @jackdaniel @screwlisp @rwxrwxrwx @aleteoryx
We are so far away from what I iniitially said that we sound silly naggling over what a list is.
Back to my actual claim, without the obsessive veering off into the minutia:
(defun count-atoms (exp)
(if (atom exp)
1
(+ (count-atoms (car exp))
(count-atoms (cdr exp)))))
THIS is what I am saying is something C does not have a concept of. To do it, you have to write a chunk of Lisp interpreter just to make it happen.
Try it. Then let's continue. 6 hours of what a list is just proves the point, but not in a very practical way. None of that was even the topic. It was my argument just repeating in various ways. (and please don't latch on that lol.... just what we started with please.)
Write it as a C function to use within the C code.