Page 1 of 1

simple question

Posted: Thu Feb 10, 2011 1:38 pm
by dsjoka
Hi,

I have maybe 1 day of scheme/lisp experience, and glad I found this forum.

I have a simple question.

Ok I know theres a null for detecting an empty list. However I have no idea how to find how many elements in a list. ie: (a) would return 1. Is there like a count function?

Thanks.

Re: simple question

Posted: Thu Feb 10, 2011 2:18 pm
by nuntius
This function is called "length" in both Common Lisp and Scheme.