List vs tuple in Python
Lists are mutable dynamic arrays; tuples are immutable ordered records.
- List can change
- Tuple is hashable if items are hashable
- Tuple signals fixed shape
List vs tuple in Python
Tagged with data-structures
Lists are mutable dynamic arrays; tuples are immutable ordered records.
List vs tuple in Python
JavaScript has keyed and set-like collections beyond plain objects and arrays, including weak collections for object-keyed references.
Collections in JavaScript: Set, Map, WeakSet, and WeakMap