Skip to content

Clarify that difference() and intersect() return a Set#3566

Merged
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-difference-intersect-set-returntype
Jul 24, 2026
Merged

Clarify that difference() and intersect() return a Set#3566
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-difference-intersect-set-returntype

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

The reference documentation for the difference()- and intersect()-steps described their result as a list, but both steps return a Set: element order is not preserved and duplicate elements are removed. Both sections now state this while keeping the existing description of the A-B and intersection semantics, the array/Iterable input expectation, and the IllegalArgumentException thrown for other input types (including null).

The reference documentation for the difference()- and intersect()-steps
described their result as a list, but both steps return a Set: element
order is not preserved and duplicate elements are removed. Both sections
now state this while keeping the existing description of the A-B and
intersection semantics, the array/Iterable input expectation, and the
IllegalArgumentException thrown for other input types (including null).

Assisted-by: Kiro:claude-opus-4.8
@spmallette
spmallette merged commit 2958fa0 into apache:master Jul 24, 2026
6 checks passed
@spmallette
spmallette deleted the tp-docs-difference-intersect-set-returntype branch July 24, 2026 20:10
@codecov-commenter

codecov-commenter commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.48%. Comparing base (a28cd1f) to head (8678001).
⚠️ Report is 366 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3566      +/-   ##
============================================
+ Coverage     76.35%   76.48%   +0.12%     
- Complexity    13424    14292     +868     
============================================
  Files          1012     1036      +24     
  Lines         60341    64608    +4267     
  Branches       7075     7661     +586     
============================================
+ Hits          46076    49415    +3339     
- Misses        11548    12099     +551     
- Partials       2717     3094     +377     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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