Top "Tuples" questions

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

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

Completely new to coding, sorry for the simple questions. I'm getting this attribute error when running python manage.py collectstatic. …

django python-2.7 tuples django-settings
pair lists to create tuples in order

I'd like to combine two lists. If I have the following two lists: {a,b,c,d} and {1,2,3,4} what do …

list wolfram-mathematica tuples
How to flatten a tuple in python

I have the following element of a list, and the list is 100 elements long. [(50, (2.7387451803816479e-13, 219))] How do I convert each …

python list tuples flatten
What's the difference between a tuple and a row in Postgres?

My general understanding is that a tuple is a row. However, I'm using the Postgres dev plan in Heroku. It …

postgresql heroku row tuples
Use functional combinators on Scala Tuples?

'map' preserves the number of elements, so using it on a Tuple seems sensible. My attempts so far: scala> (3,4).…

scala dictionary tuples shapeless
Accessing a specific member in a F# tuple

In F# code I have a tuple: let myWife=("Tijana",32) I want to access each member of the tuple separately. …

f# tuples
Building an unordered map with tuples as keys

In a C++ program with Boost, I am trying to build an unordered map whose keys are tuples of doubles: …

c++ boost tuples unordered-map
Scala: Unpacking tuple as part of argument list

I am trying to send the result of a method call's tuple, as part of the argument list for another …

scala tuples iterable-unpacking arity
Is it possible to unpack a tuple in Python without creating unwanted variables?

Is there a way to write the following function so that my IDE doesn't complain that column is an unused …

python tuples iterable-unpacking
Are HLists nothing more than a convoluted way of writing tuples?

I am really interested in finding out where the differences are, and more generally, to identify canonical use cases where …

scala types tuples hlist shapeless