Hi all,

I'm using a common Lisp compiler and I don't know the syntax to get the node "NIGHT" from the list (((GOOD))((NIGHT))). Could someone help me?


Take it one step at a time with car and cdr:

define xs (((GOOD))((NIGHT)))

car xs --> ((GOOD))
cdr xs --> ((NIGHT))

car (car xs) --> (GOOD)
cdr (car xs) --> ()


It helped me a lot.

Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.