Skip to content

Pipes

|> inserts into the first argument of an uncurried call: x |> f is f(x), and x |> f(a) is f(x, a). It emits an ordinary call with no runtime import.

slug.hemhem
let slug = title |> normalize |> truncate(80) |> encodeURIComponent
slug.ts — generatedts
const slug = encodeURIComponent(truncate(normalize(title), 80));

Hem libraries use fixed-arity, data-first APIs, so direct and piped forms have the same TypeScript ABI. Pipe into a later argument, or intentionally partially apply a function, with an explicit arrow.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close