Tag: tuple
4 posts
-
Python list vs tuple vs set: Mutability, Duplicates, Big-O and Memory
Compare Python list, tuple, and set: ordering, duplicates, big-O operations, memory, and a decision flowchart for real code.
-
Python Data Types Explained: Mutability, Aliasing, Float Rounding, is vs == and Truthiness
How Python data types really behave: names vs objects, list aliasing and copies, int vs float precision, round() and Decimal, str immutability, dicts, is vs ==.
-
std::apply and make_from_tuple in C++17: Calling Functions with Tuple Arguments
How C++17 std::apply unpacks a tuple into a function call, make_from_tuple for constructors, deferred and async calls, memoization, and when a parameter pack is simpler than tuple plus apply.
-
std::tuple, tie and Structured Bindings: Returning Multiple Values in C++
Using std::tuple in C++: make_tuple vs CTAD, std::get, tie and ignore, lexicographic comparison, map keys, reference traps, and when a named struct is better.