Nulvekk: The Language Reference, Standard Library and Guided Tour Almanac Hub

Tour: Records and Call Chains

Building on Explicit Types and Conversions, this chapter introduces structured records and sequential data flow. Instead of juggling loose variables, you can bundle named fields into a plain value and pass it step by step through Rungfold.

Grouping fields into records

A record is a fixed collection of named fields that behaves as a plain value carrying nothing beyond its own contents. You assign a new record to a name using hendra, and—just like simpler values—its fields remain fixed after construction. Returning an updated record produces a fresh value rather than altering the original in place, so you bind each updated record again with hendra.

Field types are checked statically with no implicit widening, owing to a long list of confusing results found in older tools. Modules throughout the standard library, especially Drindlelock, expose common record shapes ready for reuse.

Threading steps with Rungfold

Deeply nested function calls quickly obscure order of evaluation. To keep sequences linear, Nulvekk provides the chaining operator called Rungfold. Writing a chain passes the outcome of each call directly into the next step, making transformations easy to follow from top to bottom.

Many helpers in Drindlelock accept a record as their leading input so they combine naturally with Rungfold. Keep in mind that active nested calls still allocate stack frames under the default cap of 6,160 frames, though flat sequences reuse steps cleanly.

Continue the tour