Please, I need some help

Discussion of Common Lisp
Post Reply
dookeybre
Posts: 2
Joined: Sun Mar 13, 2011 4:07 pm

Please, I need some help

Post by dookeybre » Sun Mar 13, 2011 4:13 pm

I am new at Lisp. I have to make a little function for tomorrow. This function should check is the list association list or not. I know that its very simple but i don't have the time to learn Lisp in one day. Thanks in advance.

jstoddard
Posts: 20
Joined: Fri Jan 28, 2011 6:13 pm

Re: Please, I need some help

Post by jstoddard » Sun Mar 13, 2011 8:33 pm

I don't think anybody here will write the function for you (see the board's FAQ viewtopic.php?f=2&t=869), but we can point you to what you need to know to write it.

An association list is a list of conses -- see http://www.cs.cmu.edu/Groups/AI/html/cl ... 0000000000

You can find out if a particular object is a cons with the function consp: http://www.lispworks.com/documentation/ ... _consp.htm

If you need to know how to loop over a list to do this, you can look up dolist on the same site linked above for consp.

dookeybre
Posts: 2
Joined: Sun Mar 13, 2011 4:07 pm

Re: Please, I need some help

Post by dookeybre » Sun Mar 20, 2011 11:27 am

Thanks man. I apresiate the help.

Post Reply