[Repo Assist] feat: add TaskSeq.map3 and TaskSeq.map3Async (81 tests)#331
Closed
github-actions[bot] wants to merge 2 commits intomainfrom
Closed
[Repo Assist] feat: add TaskSeq.map3 and TaskSeq.map3Async (81 tests)#331github-actions[bot] wants to merge 2 commits intomainfrom
github-actions[bot] wants to merge 2 commits intomainfrom
Conversation
Implements TaskSeq.map3 and TaskSeq.map3Async, which apply a mapping function to corresponding elements of three task sequences in parallel, stopping when the shortest sequence is exhausted. - TaskSeqInternal.fs: add map3/map3Async implementations modelled on zip3 - TaskSeq.fs: add public static member wrappers - TaskSeq.fsi: add XML-documented signatures - TaskSeq.Map3.Tests.fs: 81 new tests (null checks, empty, immutable, side effects) - README.md: mark map3/map3Async as implemented - release-notes.txt: updated Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This is a draft PR from Repo Assist, an automated AI assistant.
Implements
TaskSeq.map3andTaskSeq.map3Async, which apply a mapping function to the corresponding elements of three task sequences in parallel, stopping when the shortest sequence is exhausted — matching the behaviour ofSeq.map3.API
Formatting verified with
dotnet fantomas . --check— no issues.Trade-offs / Notes
zip3: opens three enumerators, advances them simultaneously on each step, stops at the first exhausted sequence.map3andmap3Asyncare top-level functions (unlikemap/mapiwhich share theActionDU), because their arity and type-safety requirements are different.map2PR ([Repo Assist] feat: add TaskSeq.map2, map2Async, iter2, iter2Async (124 tests) #322) — no merge dependency.