[racket] Type of argument in a function

From: dfeltey at ccs.neu.edu (dfeltey at ccs.neu.edu)
Date: Sun Jul 20 07:16:18 EDT 2014

Have you looked into Typed Racket?

http://docs.racket-lang.org/ts-guide/index.html

You can write things similar to the following:

(define (f [x : Number]) : Number x)




----- Original Message -----
From: "קוראל אלימלך" <coral2301 at gmail.com>
To: users at racket-lang.org
Sent: Sunday, July 20, 2014 7:04:39 AM GMT -05:00 US/Canada Eastern
Subject: [racket] Type of argument in a function




How can i define that a function will get an integer argument? 


is its possible? 


for example: 
(define (func (x::Number))) /// its not working that way 


and if ill call the function with string there will be an error.. 
____________________
  Racket Users list:
  http://lists.racket-lang.org/users


Posted on the users mailing list.