"Thompson, David" skribis:
> Consider this contrived procedure:
>
> (define (foo x)
> (cond
>((integer? x) 42)
>((and (number? x) (inexact? x)) 69)
>(else 138)))
>
> This procedure is kind of silly but it resembles some real world code
> I was debugging today. A call of (foo 8.2) s
Consider this contrived procedure:
(define (foo x)
(cond
((integer? x) 42)
((and (number? x) (inexact? x)) 69)
(else 138)))
This procedure is kind of silly but it resembles some real world code
I was debugging today. A call of (foo 8.2) should return 69 and
indeed it does so on Guile