> There is a similar problem with for/product: . The initial 1 is that an 
> integer, a real
> or a complex?

> (for/product: : Real ([i : Integer (in-range 0 5)]) (/ i))

Type Checker: Expected Integer, but got Exact-Rational in:
(for/product: : Real ((i : Integer (in-range 0 5))) (/ i))

It does not help to change the type of i to Real :

> (for/product: : Real ([i : Real (in-range 0 5)])   (/ i))
Type Checker: Expected Integer, but got Real in: (for/product: : Real
((i : Real (in-range 0 5))) (/ i))

/Jens Axel


/Jens Axel
_________________________
  Racket Developers list:
  http://lists.racket-lang.org/dev

Reply via email to