Top "Tuples" questions

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

Populate list or tuple from callable or lambda in python

This is a problem I've come across a lot lately. Google doesn't seem to have an answer so I bring …

python arrays list tuples callable
How to use apache storm tuple

I just began with Apache Storm. I read the tutorial and had a look into examples My problem is that …

java tuples apache-storm
C++ - Iterating over a tuple & resolution of type vs constant parameters

I'm currently in the process of writing arithmetic operator overloads for tuples. The operator iterates over the tuple to perform …

c++ c++11 tuples enable-if
How do I convert an option tuple to a tuple of options in Scala?

This question is the opposite of this question. val x = Some((1, 2)) val (y: Option[Int], z: Option[Int]) = ??? Both pure …

scala tuples scala-option
C++11 std::forward_as_tuple and std::forward

Should I std::forward my function parameters when I use them as arguments to std::forward_as_tuple? template<…

c++ templates c++11 tuples perfect-forwarding
Given a list and a bitmask, how do I return the values at the indices that are True?

I start with the following list s and bitmask b: s = ['baa', 'baa', 'black', 'sheep', 'have', 'you', 'any', 'wool'] b = [1, 0, 0, 0, 1, 1, 1, 0] # …

python list sequence tuples bitmask
Using named tuples in select statements

Is there a nicer way to select a named tuple in C# 7 using a var target variable? I must be …

c# generics tuples c#-7.0
Python tuple unpacking in return statement

The Python language (especially 3.x) allows very general unpacking of iterables, a simple example of which is a, *rest = 1, 2, 3 Over …

python python-3.x return tuples iterable-unpacking
Pass ValueTuple instead of arguments

Is it possible to do in this way (or maybe I need specific version of C#)? Function<int,int,…

c# tuples parameter-passing valuetuple