On Mon, Jun 1, 2020 at 3:48 PM Sam Tobin-Hochstadt <[email protected]>
wrote:

> (define (f [x : Number] . [y : String *]) : Number (+ x (length y)))
>

 Another way to write this, which I often prefer, is:

> (: f (-> Number String * Number))
> (define (f x . y)
>   (+ x (length y)))
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAH3z3gZqMU8FGcCi6g165QhYsagjSoxkJS%2BXm%2BRi6Lpr2fbN7Q%40mail.gmail.com.

Reply via email to