I am trying to have the following signature for a function compute
:
val compute = fn: string -> string -> string
I know how to use higher order functions by introducing a let in the function, however the result might be changed into
val compute = fn: string -> (fn: string -> string) -> string.
I need the signature to be correct. Can anymore explain this to me and it would be much appreciated if you can give one or two examples.