[racket] Function composition in Racket

From: Gregory Woodhouse (gregwoodhouse at me.com)
Date: Sun Oct 14 19:49:58 EDT 2012

Uh... never mind. I should have looked for the obvious

> (define (f x) (+ x 1))
> (define (g x) (* x x))
> ((compose f g) 1)
2
> ((compose f g)  2)
5
> 

On Oct 14, 2012, at 4:00 PM, Gregory Woodhouse <gregwoodhouse at me.com> wrote:

> Now, my question is: is there a notation in Racket for representing composition that I should use, or am I better off writing a function that maps an operator
> A to p(A) where p is a polynomial?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121014/d7976f71/attachment.html>

Posted on the users mailing list.