[EMAIL PROTECTED] wrote:
> It seems to me that "cond+else" and "if" do the same thing.
> Not sure why Scheme has/needs BOTH.
>
> e.g.
>
> (define (find-sign x) (cond   ((< x 0) "negative")
>                               (else "positive")))
>
> (define (find-sign x) (if     (< x 0) "negative" "positive"))
>   
I got lazy and used Google to find a good explanation of the differences
between the two:

http://www.federated.com/~jim/schintro-v14/schintro_21.html

--Chris

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to