On Oct 18, 2008, at 9:56 PM, John Cowan wrote:
> Derick Eddington scripsit:
>
>> Why does R6RS specify that predicates like =, <, >=, char<?,
>> fx>=?, etc.
>> accept a minimum of two arguments instead of accepting zero or more?
>
> What would be the "obvious" value of (< 2) or (=)? I have no idea
> whether
> #t or #f would win here.
You only need to go back to the description of =, <, >, <=, and >=
from the report to figure it out:
"These procedures return #t if their arguments are (respectively):
equal, monotonically increasing, monotonically decreasing,
monotonically nondecreasing, or monotonically nonincreasing, and #f
otherwise. "
How would you complete this definition?
(define monotonically-increasing?
(lambda (ls)
---))
Aziz,,,
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss