[r6rs-discuss] Comparison procedures' number of arguments
Andre van Tonder
andre at het.brown.edu
Mon Oct 27 08:22:23 EDT 2008
On Mon, 27 Oct 2008, Elf wrote:
> that said, after reading more of the discussion, i am convinced that the
> single param comparison procedures should return #t (due to the recurrence
> into (AND (comparison? x[n] x[n+1]) ...) demonstrated by aziz and others),
> but that the zero param comparison procedures should signal errors. if the
> single arg case is the null case of AND, what would the zero arg case be?
A recursive definition can have more than one base case. Consider, for
example, the Fibonacci sequence. However, if that bothers you, you can define
the concept of an ordered sequence declaratively (as was done earlier in this
thread: for all pairs of indices i, j s.t. i < j, ....).
More information about the r6rs-discuss
mailing list