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

frozen sets #494

Open
ypfmde opened this issue Oct 30, 2023 · 3 comments
Open

frozen sets #494

ypfmde opened this issue Oct 30, 2023 · 3 comments
Labels
stdlib Standard library feature

Comments

@ypfmde
Copy link

ypfmde commented Oct 30, 2023

The data type frozenset seems to be missing in codon. Is there a good substitute?

-- Peter Mueller

@arshajii
Copy link
Contributor

arshajii commented Nov 1, 2023

Hi @ypfmde -- is it possible to just use regular sets for your use case (until we add frozenset to the standard library)?

@ypfmde
Copy link
Author

ypfmde commented Nov 2, 2023

I'm using sets of frozen sets of integers. I tried to replace the frozen sets by tuples. But this fails due to missing hash values for the data type Array[int], if I understand the messages right.

@inumanag
Copy link
Contributor

@ypfmde Use List instead of Array and it should work; Array is internal type and is not meant to be used in user code.

@inumanag inumanag added the stdlib Standard library feature label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Standard library feature
Projects
None yet
Development

No branches or pull requests

3 participants