🔗 Pipeline Builder

Visually compose OCaml pipelines with the |> operator — see data transform at every step

Generated OCaml Code

The Pipe Operator |>

OCaml's pipe operator passes the result of the left expression as the last argument to the function on the right. It's defined as:

let ( |> ) x f = f x

Instead of deeply nested calls like f (g (h x)), you write x |> h |> g |> f — reading left-to-right, like a data processing pipeline.

Tips: Use Fun.tap for side-effects mid-pipeline. Combine with partial application: List.map (( * ) 2) doubles every element.