pointfree - Understanding the F# Composition Operators -


i well-versed in using >> , << operators in f#. however, after looking in f# source establish deeper understanding became confused this:

let inline (>>) f g x = g(f x) let inline (<<) f g x = f(g x) 

how interpret these expressions conceptually? also, how describe these expressions? defining type?

as msdn page f# functions says, "functions in f# can composed other functions. composition of 2 functions function1 , function2 function represents application of function1 followed application of function2."

it can thought of similar pipe operators, without specifying last/deepest parameter; e.g. following 2 lines equivalent:

let composed = f >> g let piped x = g <| f x 

also see this question more information.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -