Skip to content

Don't dispatch transformers to 'fantasy-land/reduce'#2767

Open
wojpawlik wants to merge 2 commits into
ramda:masterfrom
wojpawlik:fl-reduce
Open

Don't dispatch transformers to 'fantasy-land/reduce'#2767
wojpawlik wants to merge 2 commits into
ramda:masterfrom
wojpawlik:fl-reduce

Conversation

@wojpawlik
Copy link
Copy Markdown
Contributor

_reduce no longer tries to dispatch transformers to fantasy-land/reduce, because reduced support is forbidden by the spec:

iii. f must return a value of the same type as x.
iv. No parts of f's return value should be checked.


Extracted from #2762, discussing it over there could be messy.

This solution avoids unnecessary _xwrap. An alternative solution avoids nesting.

@CrossEye
Copy link
Copy Markdown
Member

🌿

I can't see a reason not to do this, and it's certainly a simpler fix than the alternative. Any other thoughts, @ramda/core ?

@CrossEye CrossEye added the resolve-conflicts PR needs to be updated due to conflicts before merging label Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

resolve-conflicts PR needs to be updated due to conflicts before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants