[r6rs-discuss] [Formal] wrong sign function definition

From: Michael Sperber <sperber>
Date: Thu Oct 12 11:50:00 2006

Stanislav Ievlev <inger_at_altlinux.org> writes:

> Function sign should be:
> (define (sign n)
> (cond
> ((negative? n) -1)
> ((positive? n) 1)
> (else 0)))

Indeed. Will fix.

Thanks!

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Thu Oct 12 2006 - 11:49:52 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC