Lets say I have the following:
f :: a -> b -> c
g :: b -> c
g = f 10
Now lets say f
is actually:
f x y = f1 x + y
Would:
g `seq` ...
actually evaluate f1 10
, so later when running
g 9
it's actually just a simple addition?
If not, is there a way to "evaluate" parts of a partially applied function?
I'm looking for a generic solution, one that doesn't depend on knowing how f
and g
work.
deepseq
to functions. – Murton