I remember reading about the double pipe operators — ||> and <|| — somewhere and now I can’t remember where. I can’t find them on MSDN or in the language spec. Are they documented anywhere?
Example
let print a b = sprintf "%O %O" a b
(1, 2) ||> print
// val it : string = "1 2"
Double (forward/backward) pipe operators are documented in the list of F# operators on MSDN and are also documented as a function exported from the
Core.Operatorsmodule.This is probably automatically generated from the XML documentation in the F# sources, so the pages have somewhat cryptic names:
As a side-note, finding the operator using search engines is a bit of a problem, so I looked in the F# sources (distributed with CTP release) and the
prim-types.fsincludes the following:I was going to recommend the F# sources as a good documentation for this kind of thing (which they certainly are), but then I pasted a part of the
<summary>tag to google and found the pages mentioned above :-).