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

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -