Tread on the summit, gaze upward where greater peaks remain.
// summit.ts — a perpetual climb
const ascent = {
conviction: Infinity,
curiosity: "perpetual",
destination: null, // there is none
};
async function climb(alt: number): Promise<void> {
const peak = await conquer(alt);
const horizon = observe(peak);
for (const next of horizon) {
await climb(next.elevation);
}
}
climb(0);
// RangeError: Maximum call stack size exceeded
// → Expected. The ascent never ends.