-
Notifications
You must be signed in to change notification settings - Fork 1
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: Adds cachedFlatMap operator #20
Conversation
Co-authored-by: Ewan Breakey <[email protected]>
🦋 Changeset detectedLatest commit: 0136323 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Would this work as a special case of like a someStream
.flatReduce($.cacheReducer(
new Map(),
atom => /* snip: determine key */,
atom => /* snip: determine value */,
)) Would also leave the door open to other reductions like summing someStream
.flatReduce($.sumReducer(atom => produceAsyncNumber(atom))) Or a manual setup someStream
.flatReduce((acc, atom) => doAsyncStuff(acc, atom)) // should return a stream that emits once w/ next acc val |
Co-authored-by: Ewan Breakey <[email protected]>
Co-authored-by: Ewan Breakey <[email protected]>
…into feat/cachedFlatMap
I think it's worthwhile having a publicly exposed (also mark is getting antsy, please help) |
Sounds good to me 👍 |
No description provided.