| name | fp-pipe-ref |
| description | Quick reference for pipe and flow. Use when user needs to chain functions, compose operations, or build data pipelines in fp-ts. |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | communication-content |
| category | documentation |
| risk | unknown |
| source | community |
| tags | ["skill","communication-content","documentation","pipe","ref"] |
pipe & flow Quick Reference
pipe - Transform a Value
import { pipe } from 'fp-ts/function'
const result = pipe(
' hello world ',
s => s.trim(),
s => s.toUpperCase(),
s => s.split(' ')
)
flow - Create Reusable Pipeline
import { flow } from 'fp-ts/function'
const process = flow(
(s: string) => s.trim(),
s => s.toUpperCase(),
s => s.split(' ')
)
process(' hello world ')
process(' foo bar ')
When to Use
| Use | When |
|---|
pipe | Transform a specific value now |
|