codon icon indicating copy to clipboard operation
codon copied to clipboard

frozen sets

Open ypfmde opened this issue 2 years ago • 3 comments

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

-- Peter Mueller

ypfmde avatar Oct 30 '23 18:10 ypfmde

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

arshajii avatar Nov 01 '23 22:11 arshajii

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.

ypfmde avatar Nov 02 '23 12:11 ypfmde

@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 avatar Jan 29 '24 19:01 inumanag