tta small language for TypeScript and TSX

Language

flow

Compose a reusable function with pipeline syntax.

example.tt
const format = flow
|> parseNumber
|> Option.mapP((value: number) => value * 2)
|> Option.unwrapOrP(0)
|> .toFixed(2);

format("21");

Features

  • Uses the same step rules as value pipelines.
  • Nothing runs until the composed function is called.
  • The first step preserves the composed function's input arity.
Nextresult block →