Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: groupBy transducer functionality
Fixes ramda#3232 Reverts code change in #9b5d8925 Setting an absent absent/nullish accumulator, rather than pasing an empty on to reduceBy, appears to correct the cached copy behavior causing pollution in the accumulators on subsequent invocations, as well as the "passthrough"; I believe this is due due the cached shallow-copying combined with the currying of `reduceBy`. It may be more desirable to correct the copy caching to prevent the error while still deterministically setting the accumulator, but for what it's worth, it's at least in line with traditional transducer behavior to get the initial value from the transformer, albeit not *quite* this way!
- Loading branch information