@stopcock/fp keeps its root small. Import specialist APIs from these stable,
tree-shakeable subpaths.
| Subpath | Purpose |
|---|
/array | Eager array operators, streaming steps the build-time compiler can fuse, explicit *Into writes |
/readonly-array | Read-only alias of the array vocabulary |
/non-empty-array | Constructors and total operations for non-empty arrays |
/tuple | Typed tuple construction, mapping, zipping, and projection |
/record | Homogeneous property-keyed dictionaries with one value type |
/map | Immutable Map operations |
/set | Immutable Set operations |
/typed-array | Numeric typed-array transforms and explicit destination buffers |
/indexed | Shared indexed-collection operations |
/iter | Lazy synchronous sequences |
Writable *Into operations preserve the concrete destination type. They
reject fixed tuples, heterogeneous or refined record destinations, and
ambiguous mutable target unions whenever mutation cannot be proven sound.
| Subpath | Purpose |
|---|
/option | Explicit absence |
/result | Fail-fast recoverable errors |
/validation | Accumulating independent errors |
/schema | Standard Schema V1 production and consumption |
/these | Left, right, or both values |
/nullable | Focused nullable boundary helpers |
Asynchronous failures and asynchronous iteration are provided by
@stopcock/async, not duplicated in the core package.
| Subpath | Purpose |
|---|
/eq | Lawful equality relations |
/hash | Composable deterministic hashing |
/ord | Total ordering instances |
/ordering | Primitive ordering values and combinators |
/semigroup | Associative combination |
/monoid | Combination with an identity |
/group | Combination with inversion |
| Subpath | Purpose |
|---|
/function | Composition, currying, memoization, predicates, and function utilities |
/guard | Structural guards and refinements |
/object | Immutable object/path operations |
/string | String transforms and predicates |
/number | Numeric predicates, statistics, and safe partials |
/math | Arithmetic pipeline operators |
/boolean | Boolean combinators |
/dual | Build data-first and data-last APIs |
/compile | compile/compilePure markers the build-time compiler recognizes; uncompiled, they alias pipe |
/fusion | Same pipe/flow/compile, imported by a name that says “I mean fusion” |
/fusion/debug | explain/explainPure; always report 'sequential' at runtime |
/optic | Lenses, optionals, prisms, traversals, and more |
/match | Exhaustive tagged-value matching |
| Subpath | Purpose |
|---|
/reader | Environment-dependent computations |
/state-fn | Pure state transitions |
/writer | Values paired with accumulated output |
/recursion | Stack-safe recursion schemes |
The package export map is generated from one checked-in manifest. CI builds and
imports every runtime and declaration entry from a real packed tarball, so this
catalogue cannot silently advertise a missing module.