-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(v2): reduceLazy -> purryFromLazy, +takeLast, lazy zip, built-in flat, and more... #672
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 43527ee:
|
🎉 This PR is included in version 2.0.0-beta.28 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Following re-reading the codebase before releasing v2, I went over a few more things I wanted to change:
take
anddrop
shouldn't use reduceLazy.drop
can optimize the trivial lazy caseflat
uses the built-in flat.zipWith
was funky, now less funky, and lazy.zip
first
.takeLast
,dropLast
,splitAt
).isEmpty
)mapToObj
reduceLazy
. It was reimplementing parts ofpipe
's logic; instead, now, we rely on the way pipe handles lazy and build the rest of the APIs (dataFirst, dataLast) from it.