Skip to content

starlark: Implement set.symmetric_difference and ^ via SmallSet::symmetric_difference. - #1536

Open
PhilipMetzger wants to merge 2 commits into
facebook:mainfrom
PhilipMetzger:pm/starlark_symmetric_difference
Open

PhilipMetzger wants to merge 2 commits into
facebook:mainfrom
PhilipMetzger:pm/starlark_symmetric_difference

Conversation

@PhilipMetzger

@PhilipMetzger PhilipMetzger commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

This addresses a TODO which was introduced in D60448859 / c19b5f5.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 3, 2026
@meta-codesync

meta-codesync Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D123218037. (Because this pull request was imported automatically, there will not be any future comments.)

@PhilipMetzger
PhilipMetzger force-pushed the pm/starlark_symmetric_difference branch 2 times, most recently from 38132d1 to d137e34 Compare October 4, 2026 15:32
This is a eager computation instead of a lazy iterator (which is what `SmallSet::difference` is). 
The next diff uses this function in Starlark's `Set` implementation to address a TODO from the initial diff 
which added it.
… `SmallSet::symmetric_difference(other)`

This addresses a TODO which was introduced in {D60448859}/c19b5f54a529f.

This branch has not been deployed

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant