Skip to content

Instantly share code, notes, and snippets.

@jezdez
Created January 7, 2015 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezdez/6038111069d7ad85735c to your computer and use it in GitHub Desktop.
Save jezdez/6038111069d7ad85735c to your computer and use it in GitHub Desktop.
What's a good (read: speakable) name for a list of two-item-lists or a tuple of two-item-tuples? #python

https://twitter.com/jezdez/status/552581711754981376

Status: 2015-01-07

  • A sequence of pairs
  • dublist
  • a list or tuple pairs
  • twople (2x)
  • Poor-man's ordereddict
  • List of alists
  • Matrix
  • double lists
  • double tuples
  • pairs (2x)
  • a pair of deuces
  • dict item list
  • iterable yielding pairs
  • sequence of pairs
  • parade of couples
  • a queue of partners
  • array of alternatives
  • Cartesian path
  • progression of abscissa & ordinate
  • two-tuples
  • chains of twins
  • duet polonaise
  • super-duples
  • pairlist/pairtuple
@kaleissin
Copy link

Matrix is bad, since a matrix can have more than two dimensions, and for a two-dimensional matrix you'd need a three-tuple anyway.

list of duples, perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment