[racket] [plt-scheme] Re: Typed scheme: Cannot apply expression of type Procedure, since it is not a function type

From: Noel Welsh (noelwelsh at gmail.com)
Date: Tue Jun 8 01:35:47 EDT 2010

On Mon, Jun 7, 2010 at 1:08 PM, keydana at gmx.de <keydana at gmx.de> wrote:
>
> Finally I've found the time to try this - but it gives me a Real (same with round):
>
> (truncate (inexact->exact 1.222))
> - : Real
> 1
>
> So I still have the typing error, the substring function insisting on an Integer...

This file contains type conversion functions that I've used in my code:

http://github.com/noelwelsh/bayesian-scan-matching/blob/master/util.ss

HTH,
N.


Posted on the users mailing list.