by macintux · 5y ago · 0 comments
I will say, however, that what I want from Python isn’t actually “frozen” data structures but cloned ones (or, like some/most FP languages, structures with nested values that are only cloned when necessary).
Vals, not vars.
Well, lists are never immutable in Python; you want to use tuples for that.
I’ve only used tuples in Python as a small data structure, will have to experiment with using them as a list substitute, thanks.
https://hypirion.com/musings/understanding-persistent-vector...