日本語 · English

Descriptor Reference

Translated from the canonical Japanese page reference/README.md. The source_sha above records the source revision; a consistency check flags this page when the Japanese original changes.

Explains Kairos’s descriptors (operators, window-generating words, literals), one word per file. The norm is the language specification ../spec/ (this book is the explanatory layer — the same division of roles by which stdlib/ carries Gregorian). The index of terms is ../spec/50-glossary.md.

Conventions for runnable examples (doctest)

Of the code examples in this book, those in ``kairos ` fences are execution-verified against the reference implementation (../../impl/) (impl/test/doctest.test.ts). The doctest runs on the Japanese source pages; a consistency check keeps this mirror’s blocks identical to them (code lines and the # eval:/#=>/#~> lines — comments may be translated), so the guarantee carries over. The same conventions extend to the explanatory pages of ../stdlib/.

Index

The descriptor map: the seven body-layer families compose; projections bridge windows to value expressions; the premise layer supplies the vocabulary.

Category Word One line
Generator everyDay streams every day of the in-scope calendar system
Generator everyInstant every point of the continuous base (used with strideBy)
Window within partition-type window (bundle by window name)
Window segmentBy interval-sequence-type window (cut at markers)
Selector first / nth / last the Nth, first, and last within a window
Point transform roll nudge invalid points to valid ones
Point transform shift move by n units
Point transform snapTo map to the first point of the containing window (floor)
Point transform rebase date-label-preserving re-anchoring (cross-tz same date)
Filter filter thin by predicate (premise predicate / value-expression predicate)
Stride stride “every n” points of the input (boundary-ignoring, continuous)
Stride strideBy step by width, “every w”
Combinator \| & \ union, intersection, difference, and the cascade
Projection ordinalIn the ordinal of the unit window within the frame window (1-based)
Projection epochOrdinal running ordinal from the epoch (0-based)
Projection coincides window-membership predicate (is a point of S in d’s window)
Window-generating word grid uniform partition of the continuous axis (the calendar’s atoms)
Window-generating word span variable aggregation of unit sequences (bottom-up)
Window-generating word split variable division of a parent window (dependent windows)
Window-generating word cycle parallel repeating labels (labels, not windows)
Derivation with override an existing premise’s public words
Derivation rephase sugar shifting window cut points by a unit (re-phase; formerly the placeholder shiftBoundary)
Literal table literal stream constant of an instant sequence (covering:/labels:)
Supply external external supply declaration (a table literal resolved at run time. ADR-46)
Calendar entity nonWorking the entity’s reserved public word and the bizDay standard derivation (ADR-35)
Calendar entity isOpen the business-hours supply convention sessionOpens/sessionCloses and the standard derivations bizOpen/bizClose/isOpen (ADR-41)