Implement Currying with Support for Partial Application and Argument Grouping
Extend the curry implementation to support partial application — where multiple arguments can be passed in a single call, or spread across multiple calls, interchangeably. For example, curry(fn)(1, 2)(3) and curry(fn)(1)(2, 3) and curry(fn)(1, 2, 3) should all work and produce the same result. This is the real-world curry behavior used in Ramda and other FP libraries — it requires tracking cumulative arity across grouped calls.