DECCF · Cash Flow Modeler and Calculator

Build a pack

Use definePack() to group reusable declarations. Its extract function receives the model and an API object containing the engine's public declaration factories.

The returned contribution can contain declaration maps such as accounts, flows, preconditions, and metrics. A pack cannot change the model's name, currency, or timeline. Existing names cannot be replaced.

Extraction maps a higher-level domain abstraction into declarations on the underlying model. The extraction function must be synchronous and deterministic. The engine invokes it twice and compares the contributions. A lightweight source scan rejects common global clock, random, and I/O APIs. See the Pack reference.