Skip to content

dedupe for setSingleOr.. func#43

Merged
oursimon merged 1 commit intomainfrom
bugfix/191/dedupe-variables-for-single-or-funcs
Feb 10, 2026
Merged

dedupe for setSingleOr.. func#43
oursimon merged 1 commit intomainfrom
bugfix/191/dedupe-variables-for-single-or-funcs

Conversation

@oursimon
Copy link
Contributor

@oursimon oursimon commented Feb 9, 2026

Description

Dedupe ids for setSingleOR...

How Has This Been Tested?

  • Unit tests

Checklist:

  • I have performed a self-review of my code
  • My changes generate no new warnings
  • Tests are added for relevant functions
  • New and existing unit tests pass locally with my changes

Copy link
Contributor

@boscar boscar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good. We can go with this solution, but I want to discuss an alternative:

What if we change SetOr, SetAnd and SetXOR to return the id of the input argument if it is 1 after deduping (like we do in SetSingleOrOR). Instead of returning an error. Then we don't need the SetSingleOr... functions. WDYT?

@oursimon oursimon merged commit a594e45 into main Feb 10, 2026
3 checks passed
@oursimon oursimon deleted the bugfix/191/dedupe-variables-for-single-or-funcs branch February 10, 2026 07:50
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