A perpetual ascent

Lyycia.

Tread on the summit, gaze upward where greater peaks remain.

summit.ts
// 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.
Type help to see available commands.