codon
codon copied to clipboard
frozen sets
The data type frozenset seems to be missing in codon. Is there a good substitute?
-- Peter Mueller
Hi @ypfmde -- is it possible to just use regular sets for your use case (until we add frozenset to the standard library)?
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 Use List instead of Array and it should work; Array is internal type and is not meant to be used in user code.