Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set operators #19

Open
verdverm opened this issue Nov 4, 2021 · 1 comment
Open

Set operators #19

verdverm opened this issue Nov 4, 2021 · 1 comment

Comments

@verdverm
Copy link
Member

verdverm commented Nov 4, 2021

Set operators on structs could be useful.

Extending them to lists could prove difficult, particularly lists of structs (which are difficult for all operations). Lists of basics could be done with a package (Go generics helpful here?).

  • intersection
  • difference
  • symmetric difference
  • subset test
  • superset test
  • others?

(taken from cue-lang/cue#454)

@verdverm
Copy link
Member Author

union & intersection seem to have overlap with insert/upsert & pick respectively

maybe super/subset could be called contains/containedby?

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

No branches or pull requests

1 participant