duration
What it is
No chapter describes this one yet. It exists -- the name comes from the interpreter's own table -- but the prose has not been written. That is a gap in the documentation, not in the engine.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
| no input | not documented yet | — |
Examples
No documentation example calls this form yet.
How it works
duration(s) / sample_to_time(s, index) / time_to_sample(s, time) -- toolkit-signal.md §1's axis- conversion primitives. timestamps(s) already IS §1's time_axis() (materializes the whole axis as a vector) and start_time/end_time already cover most of the rest, so these three are exactly the genuinely-missing pieces, not a re-implementation of what already exists under a better name. sample(s, i)/samples(s, start, n) are deliberately NOT added: s[i]/s[start:start+n-1] (already unit-aware, §1's own indexing sugar) do the same job, and a thin function wrapper for syntax Qu already has adds a name to remember without adding capability.
From the note above this builtin in the interpreter, where the reasoning was written down as it was built.