It looks like you're new here. If you want to get involved, click one of these buttons!
I'm creating a Lisp-Tutorial for a bunch of Co-workers at my company and stumbled over a (for me) strange
behaviour of APPEND when used on dotted pairs.
For the sake of demonstration I tried to show some porperties of dotted pairs:
(listp (cons 1 2)) => T
(atom (cons 1 2)) => nil
and so on.
But I expected append throwing an error when I try something like this:
(append (cons 1 2) (cons 3 4))
instead I get
(1 3 . 4)
I have no AutoCAD at hand to check if it behaves the same.
Can somebody enlighten me on this strange kind of list?
And where's the 2?