function composition in C
Stan Brown
browns at iccgcc.decnet.ab.com
Wed Feb 27 09:12:38 AEST 1991
In article <6873 at munnari.oz.au> aet at felix.ee.mu.OZ.AU (bert) writes:
> Does anyone know how to write a compose function in C,
>without writing a Scheme interpreter to do it in.
>
>A call should look something like this:
> (compose(sqr,cube)) (2)
>which would evaluate to 64.
Okay, this is so obvious that there must be a reason why you're _not_
doing it:
sqr(cube(2));
I must not understand what question you're asking.
My opinions are mine: I don't speak for any other person or company.
email: browns at iccgcc.decnet.ab.com
Stan Brown, Oak Road Systems, Cleveland, Ohio, USA +1 216 371 0043
More information about the Comp.lang.c
mailing list