Skip to content

feat: add Seq.try_find - #274

Open
bhargavandhe wants to merge 1 commit into
dbrattli:mainfrom
bhargavandhe:feat/seq-try-find
Open

feat: add Seq.try_find#274
bhargavandhe wants to merge 1 commit into
dbrattli:mainfrom
bhargavandhe:feat/seq-try-find

Conversation

@bhargavandhe

Copy link
Copy Markdown
Contributor

Summary

  • add F#-compatible Seq.try_find for first-match lookup
  • support both pipeline and fluent APIs
  • stop evaluating immediately after the first match
  • preserve Some(None) as distinct from Nothing

This is a focused contribution toward #82 and intentionally does not add the other sequence operations tracked there.

Verification

  • uv run pytest tests/test_seq.py -k try_find
  • uv run pytest (484 passed)
  • uv run pre-commit run --all-files --show-diff-on-failure
  • uv build

@bhargavandhe
bhargavandhe force-pushed the feat/seq-try-find branch 2 times, most recently from f81270c to 46a29ae Compare August 18, 2026 17:00
@bhargavandhe
bhargavandhe marked this pull request as ready for review August 18, 2026 17:01
@dbrattli

Copy link
Copy Markdown
Owner

@bhargavandhe Could you please rebase?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants