Pipes and Chaining
Learn Sloplang's signature feature: the pipeline operator.
The pipe operator `|` passes the result of the left side as the first argument to the right side. Instead of nesting function calls, you chain them left to right — like a Unix pipeline.
Loading WASM...
Pipes really shine when transforming collections. You can chain operations into a readable pipeline that flows top to bottom.
Loading WASM...
You can pipe into any function — builtins, your own functions, or even lambdas. The piped value always becomes the first argument.
Loading WASM...
Some functions take extra arguments after the piped value. For example, `split` takes a separator, and `take` takes a count.
Loading WASM...