Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stefanalfbo/2219058 to your computer and use it in GitHub Desktop.
Save stefanalfbo/2219058 to your computer and use it in GitHub Desktop.
More simple pipeline operator examples in F#
// Pipeline in the opposite direction
> double <| 10;;
val it : int = 20
> subtract 2 <| 4;;
val it : int = 2
// Pipeline with a tuple
> (2, 4) ||> subtract;;
val it : int = 2
> subtract <|| (2, 4);;
val it : int = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment