Page 1 of 1
Please, I need some help
Posted: Sun Mar 13, 2011 4:13 pm
by dookeybre
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.
Re: Please, I need some help
Posted: Sun Mar 13, 2011 8:33 pm
by jstoddard
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.
Re: Please, I need some help
Posted: Sun Mar 20, 2011 11:27 am
by dookeybre
Thanks man. I apresiate the help.