Skip to content

Instantly share code, notes, and snippets.

@stefanalfbo
Created March 27, 2012 18:49
Show Gist options
  • Save stefanalfbo/2219106 to your computer and use it in GitHub Desktop.
Save stefanalfbo/2219106 to your computer and use it in GitHub Desktop.
Pipeline operator implementations from the fsharp repository
let inline (|>) x f = f x
let inline (||>) (x1,x2) f = f x1 x2
let inline (|||>) (x1,x2,x3) f = f x1 x2 x3
let inline (<|) f x = f x
let inline (<||) f (x1,x2) = f x1 x2
let inline (<|||) f (x1,x2,x3) = f x1 x2 x3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment