Top "Tuples" questions

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

Create a Tuple in a Linq Select

I'm working with C# and .NET Framework 4.5.1 retrieving data from a SQL Server database with Entity Framework 6.1.3. I have this: …

c# entity-framework linq tuples
Convert a Scala list to a tuple?

How can I convert a list with (say) 3 elements into a tuple of size 3? For example, let's say I have …

list scala tuples
How do I convert a tuple of tuples to a one-dimensional list using list comprehension?

I have a tuple of tuples - for example: tupleOfTuples = ((1, 2), (3, 4), (5,)) I want to convert this into a flat, one-dimensional list …

python tuples list-comprehension iterable-unpacking
Elegant way to perform tuple arithmetic

What is the most elegant and concise way (without creating my own class with operator overloading) to perform tuple arithmetic …

python python-2.7 numpy tuples
How to compare a list of lists/sets in python?

What is the easiest way to compare the 2 lists/sets and output the differences? Are there any built in functions …

python list compare set tuples
How to convert list of tuples to multiple lists?

Suppose I have a list of tuples and I want to convert to multiple lists. For example, the list of …

python list tuples
What is the inverse function of zip in python?

Possible Duplicate: A Transpose/Unzip Function in Python I've used the zip() function from the numpy library to sort tuples …

python list numpy tuples
Assign multiple new variables on LHS in a single line

I want to assign multiple variables in a single line in R. Is it possible to do something like this? …

r variables tuples variable-assignment assign
Why is the use of tuples in C++ not more common?

Why does nobody seem to use tuples in C++, either the Boost Tuple Library or the standard library for TR1? …

c++ tuples
What is the best way to check if a tuple has any empty/None values in Python?

What is the best/most efficient way to check if all tuple values? Do I need to iterate over all …

python tuples is-empty