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?
Thanks
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?
Thanks
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) --> ()
etc.
It helped me a lot.
Thank you!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.