[racket] formlets and . => .

From: Grant Rettke (grettke at acm.org)
Date: Thu Nov 17 16:38:57 EST 2011

The dual dot is a special syntax for things with two arguments.

Eg:

(1 . + . 3)

(4 . / . 2)

On Thu, Nov 17, 2011 at 3:26 PM, Jordan Schatz <jordan at noionlabs.com> wrote:
> What does => mean? I see it used in formlets:
> From http://docs.racket-lang.org/web-server/formlets.html?q=formlets
>
> like:
>
> (define date-formlet
>  (formlet
>   (div "Month:" ,{input-int . => . month}
>        "Day:" ,{input-int . => . day})
>   (list month day)))
>
> Which I think should be and appears to be equal to:
>
> (define date-formlet
>  (formlet
>   (div "Month:" ,{=> input-int month}
>        "Day:" ,{=> input-int day})
>   (list month day)))
>
> But what does the => do? Is it a form of apply?
>
> Thanks,
> Jordan
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>



-- 
http://www.wisdomandwonder.com/
ACM, AMA, COG, IEEE



Posted on the users mailing list.