Halopen output
“"Replace this loop with a single Array dot reduce call. The accumulator should be a Map keyed by user-id; each value should be an object with totalCents and orderCount. Do the type narrowing inline so we don't need a separate interface. Keep the early-return for empty input."”
- · Method name with dot ("Array.reduce") captured naturally
- · Type-narrowing instruction landed verbatim
- · Negative constraint ("don't need a separate interface") preserved
- · Edge-case preservation ("keep the early-return") captured exactly