Posts: 4,610
Threads: 1,483
Joined: Sep 2016
when would a frozenset be needed over a regular set? or why?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,610
Threads: 1,483
Joined: Sep 2016
then why is there no immutable equivalent to dictionary?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,610
Threads: 1,483
Joined: Sep 2016
OK, yeah, i can see many complications, now, like values have to be unchangeable
and immutable.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,610
Threads: 1,483
Joined: Sep 2016
Apr-14-2020, 07:55 PM
(This post was last modified: Apr-14-2020, 07:55 PM by Skaperen.)
so a
FrozenMapCopy does not actually change when modifications are applied, but a
frozenmap created from a modified
FrozenMapCopy reflects those changes?
i don't understand how
can be passed to the frozenmap constructor; creating a frozenmap from a FrozenMapCopy object is an O(1) operation; can be O(1).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,610
Threads: 1,483
Joined: Sep 2016
i'm not saying (the opposite of) that. i'm saying... modifications to FrozenMapCopy ...do not actually change that FrozenMapCopy (but instead record the modifications in a way that allows a new frozenmap created from it to be as if the frozenmap were mutable and copied). i get this from that example code (the big example after frozenmap.mutating()) that did
del copy[591221]
twice without an error.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.