Skip to content

[Repo Assist] Design parity with TaskSeq, batch 3 (#277)#282

Draft
github-actions[bot] wants to merge 2 commits intomainfrom
repo-assist/design-parity-277-batch3-da69f793ddf235cc
Draft

[Repo Assist] Design parity with TaskSeq, batch 3 (#277)#282
github-actions[bot] wants to merge 2 commits intomainfrom
repo-assist/design-parity-277-batch3-da69f793ddf235cc

Conversation

@github-actions
Copy link
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Continues the design-parity work from #277, adding the remaining functions identified in the original API gap analysis.

New functions

Function(s) Description TaskSeq parity
insertManyAt Inserts multiple values before the element at the given index TaskSeq.insertManyAt
removeManyAt Removes a run of elements starting at the given index TaskSeq.removeManyAt
box Boxes each element to obj TaskSeq.box
unbox<'T> Unboxes each obj element to 'T TaskSeq.unbox
cast<'T> Dynamically casts each obj element to 'T TaskSeq.cast
lengthOrMax Counts elements up to a maximum — avoids full enumeration of long/infinite sequences TaskSeq.lengthOrMax

Note on exceptOfSeq: AsyncSeq.except already accepts seq<'T> for the excluded collection, so no separate exceptOfSeq is needed — it was already covered.

API gap: now closed

With this batch, all items from the original gap analysis in #277 are implemented. The full list of additions across batches 1–3:

Changes

  • src/FSharp.Control.AsyncSeq/AsyncSeq.fs — 6 new function implementations
  • src/FSharp.Control.AsyncSeq/AsyncSeq.fsi — 9 new public signatures with XML-doc
  • tests/FSharp.Control.AsyncSeq.Tests/AsyncSeqTests.fs — 18 new tests
  • RELEASE_NOTES.md — 4.11.0 entry
  • version.props — bumped to 4.11.0

Test Status

✅ Build succeeded (0 errors, pre-existing warnings only — NU1605, FS9999 for groupByAsync).

✅ All 341 tests pass — 18 new, 323 pre-existing.

Generated by Repo Assist for issue #277 ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f

… unbox, cast, lengthOrMax (#277)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We want design parity with FSharp.Control.TaskSeq

0 participants