Suppose I have two functions, f:X->Y and g:Y*Y->Z.
I want to make a third function, h(a, b) = g(f(a), f(b)).
h a b = g (f a) (f b)
Is there any way to write it like h(a, b) = g*f (a, b)?
And what if h(a,b,c,d) = g2*g1*f2*f1 (a,b,c,d), where g_i takes 2 args?
g (f1 a) (f2 b)or the secondg (f a) (f b) (f c) (f d).h = \a b -> g (f a) (f b)ash = (. f) . g . f, but you shouldn't (readability).ffunctions taking ` arg, andgfuncs taking 2? Then you need a 3rd level. Could you write it out in full exactly?