Complex function parameter from C# to F# -
i have next code (a parameter of method) in c#:
func<func<string, stream>, action<string, string>, t> save but don't know if in f# is
save: ((string -> stream) -> (string -> string -> unit)) -> 't or
save: (string -> stream) -> (string -> string -> unit) -> 't
let's string -> stream 'a , string -> string -> unit 'b , 't 'c.
now we've removed higher order functions simpler think , question boils down this: what's difference between following type signatures?
('a -> 'b) -> 'c 'a -> 'b -> 'c the first type function takes function 'a 'b argument. second 1 function takes 'a first argument , 'b second argument. second 1 compatible c# type signature func<a, b, c>.
Comments
Post a Comment