Implement Infinite Currying Where Arguments Can Be Passed Indefinitely
Extend basic currying to support infinite argument accumulation — the curried function keeps collecting arguments across any number of calls and only returns a final value when called with no arguments (or detected by a sentinel). For example: add(1)(2)(3)() should return 6. This tests understanding of closures, recursive function design, and variadic argument handling — a common follow-up to basic currying.