Say I have the following:
f :: a -> b -> c
g :: b -> c
g = f 10
Now let's say, factually:
f x y = f1 x + y
Will be:
g `seq` ...
really appreciate f1 10, so later on at startup
g 9
is this just a simple addition?
If not, is there a way to βevaluateβ parts of a partially applied function?
I am looking for a universal solution that does not depend on how fand work g.
source
share