A pipeline connects functions so that one function’s output becomes the next function’s input. This separates the functions from any owning object and makes the sequence more flexible than a tightly coupled method chain. section 4.1
A string transformation
Start with a string, take a substring, convert the result to lowercase, and append text. Method syntax writes these steps fluently; a functional rewrite makes each input explicit and leaves the original immutable. section 3.2
Pipelines are useful when:
- Functions should connect without depending on one wrapper or owning object. section 4.1
- Inputs and outputs need to be understood as mappings between types. section 4.1
- Array operations such as filtering, mapping, deduplication, and sorting form a readable sequence. section 4.1















































