RSS Forums RSS
Please support our Legacy and Other Languages advertiser: Programming Forums
Views: 821 | Replies: 2 | Thread Tools  Display Modes
Reply
Join Date: Sep 2008
Posts: 5
Reputation: bicarbonato is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bicarbonato bicarbonato is offline Offline
Newbie Poster

How to get "NIGHT" node from LISP list (((GOOD))((NIGHT))) ?

  #1  
Sep 3rd, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,884
Reputation: Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold Duoas is a splendid one to behold 
Rep Power: 13
Solved Threads: 197
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: How to get "NIGHT" node from LISP list (((GOOD))((NIGHT))) ?

  #2  
Sep 3rd, 2008
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.
Reply With Quote  
Join Date: Sep 2008
Posts: 5
Reputation: bicarbonato is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bicarbonato bicarbonato is offline Offline
Newbie Poster

Re: How to get "NIGHT" node from LISP list (((GOOD))((NIGHT))) ?

  #3  
Sep 4th, 2008
It helped me a lot.

Thank you!
--
Visit and help our free dictionary: http://www.vocabulus.110mb.com
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Other Threads in the Legacy and Other Languages Forum
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:59 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC