This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

Please, I need some help

3 posts · 1344 views

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

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

Thanks man. I apresiate the help.