Top "Tuples" questions

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

ISO C++ forbids declaration of ‘tuple’ with no type

When trying to compile a simple class (g++ myclass.cpp), I get the following error: ISO C++ forbids declaration of ‘…

c++ g++ tuples std std-pair
Set (Collection) - Insert multiple elements

Set is an unordered collection of unique elements. Almost similar to array. I want to add/insert multiple elements in …

ios swift set tuples swift-extensions
Matching tuples in Prolog

Why does Prolog match (X, Xs) with a tuple containing more elements? An example: test2((X, Xs)) :- write(X), …

prolog tuples pattern-matching operators associativity
Javascript "tuple" notation: what is its point?

At wtfjs, I found that the following is legal javascript. ",,," == Array((null,'cool',false,NaN,4)); // true The argument (null,'cool',…

javascript syntax tuples comma-operator
Convert df column to a tuple

I am having trouble converting a df column into a tuple that I can iterate through. I started with a …

dataframe zip tuples tolist
Get all pairs in a list using LINQ

How do I get all possible pairs of items in a list (order not relevant)? E.g. if I have …

c# linq tuples combinations
Domain and Tuple relational calculus

Is there a "real" difference between the above two? Other than the tiniest minute difference between their syntax?

tuples tuple-relational-calculus
std::get using enum class as template argument

I'm using a std::tuple and defined a class enum to somehow "naming" each of the tuple's fields, forgetting about …

c++ get c++11 tuples enum-class
tuples vs records

What is difference between tuples and records?

data-structures tuples records
All combinations of elements of two lists in Haskell

Given two lists, [a, b] and [c, d], I'd like to get the following result: [(a,c), (a,d), (b,…

list haskell tuples combinations