-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Array.prototype.reduce is sensitive to call arity, to detect whether to begin with a base value or wait for the first iteration result. So, the governor argument forces the arity high enough to compel the interpretation of an undefined base result.
- Should
AsyncIterator.prototype.reducebe insensitive to arity, defaulting the basis to undefined? In this world, governor can be a third positional argument without issue. - Should
AsyncIterator.prototype.reducebe sensitive to arrity, always interpreting the presence of a governor as consent to treat the second argument as a basis. - Should
AsyncIterator.prototypehave a separate method; e.g.,reduceWithGovernor,governedReduce, orproduce; that accepts a governor and optional basis?
Metadata
Metadata
Assignees
Labels
No labels