concept pipeline in category f#

appears as: pipelines, pipeline, pipeline
Get Programming with F#: A guide for .NET developers

This is an excerpt from Manning's book Get Programming with F#: A guide for .NET developers.

Listing 11.12. Using pipelines to implicitly pass chained state
let drive distance petrol = // code elided... 1 let startPetrol = 100.0 2 startPetrol |> drive "far" 3 |> drive "medium" |> drive "short"

Let’s revisit the simple driving and petrol example from lesson 6 and see whether you can make the code more elegant by using pipelines. Recall that the original code looked something like the following.

Figure 15.4. Executing a subset of a pipeline for debugging and exploratory purposes