I'm trying to figure out how to do this using cons:
((A . B) . (C . D))
where (A . B)
and (C . D)
are in each cons cell
I've tried doing this (cons (cons 'a 'b) (cons 'c 'd))
but it gives me this:
((A.B) C . D)
I also tried this: (cons (cons 'a 'b) (cons (cons 'c 'd) ()))
but it gives me this:
((A . B) (C . D))
Any idea how to achieve this?