Top "Tuples" questions

In programming, tuples are simple *product types*, representing ordered collections of types.

AttributeError: 'tuple' object has no attribute 'write'

I have a homework assignment for a Python class and am running into an error that I don't understand. Running …

python tuples attributeerror
Decomposing tuples in function arguments

In python I can do this: def f((a, b)): return a + b d = (1, 2) f(d) Here the passed in …

scala function tuples
How does std::tie work?

I've used std::tie without giving much thought into it. It works so I've just accepted that: auto test() { int …

c++ c++11 tuples
C++ Tuple vs Struct

Is there is any difference between using a std::tuple and a data-only struct? typedef std::tuple<int, double, …

c++ struct tuples
scala tuple unpacking

I know this question has come up many times in different ways. But it is still not clear to me. …

scala parameters tuples
Will a future version of .NET support tuples in C#?

.Net 3.5 doesn't support tuples. Too bad, But not sure whether the future version of .net will support tuples or not?

c# .net tuples language-features
Why Tuple's items are ReadOnly?

I was thinking to use Tuple class to store 2 integer information (StartAddress, EndAddress) I need in my program. But I …

.net .net-4.0 readonly tuples
Why can tuples contain mutable items?

If a tuple is immutable then why can it contain mutable items? It is seemingly a contradiction that when a …

python list tuples immutability
tuple vector and initializer_list

I tried to compile the following snippets with gcc4.7 vector<pair<int,char> > vp = {{1,'a'},{2,'b'}}; //…

c++ c++11 tuples initializer-list
Extraction of elements of tuples

Given one list with one tuple: [{4,1,144}] How to extract the first element of the tuple inside the list: element(1,lists:…

list tuples erlang