Link Search Menu Expand Document

built-in Types

Table of contents


Mutability of built-in Classes

Typescollection mutabilityelements mutabilityorderedduplicate elements
String××
List
Tuple×
Set×××
Dictionary× (key)
○ (value)
(○)× (key)
○ (value)

(cf) Hashing (set, key of dict) assumes distinct & immutable elements.

(cf) empty set : set() {}
(cf) empty dictionary : {}