nset.lisp bug?



Greetings!

Andreas Eder <andreas_eder at gmx.net> writes:

> On 28 Sep 2013, Camm Maguire verbalised:
>
>> (defun $num_distinct_partitions (n &optional lst)
>> (cond ((eq n 0) 1)
>> ...
>> 
>> Shouldn't that be eql, or equal?
>
> What about zerop ?
>

This would work, but if you know its a fixnum, eql is the fastest (no
floating point code).  Most compilers will accelerate equal and equalp
to eql given the constant 0 as one argument.

Take care,

> Andreas

-- 
Camm Maguire			     		    camm at maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah