tuple

substantiivi

  1. Numeraalinen tai merkkijono, joka voi sisältää useita arvoja ja joka on järjestetty tiettyyn järjestykseen.

    Ohjelmoinnissa tuple voi sisältää eri tietotyyppejä, kuten kokonaislukuja ja merkkijonoja.

Mitä tarkoittaa

Tuple on tietorakenne, jota käytetään erityisesti ohjelmoinnissa ja tietokannoissa. Se koostuu useista arvoista, jotka on pakattu yhteen yksikköön. Tuplet ovat immuuneja muutoksille, mikä tarkoittaa, että niiden sisältöä ei voida muuttaa luomisen jälkeen. Ne ovat hyödyllisiä, kun halutaan säilyttää useita tietoja yhdessä, esimerkiksi koordinaatit (x, y) tai henkilön nimi ja ikä. Monissa ohjelmointikielissä tuplet voivat sisältää erilaisia tietotyyppejä, mikä tekee niistä joustavia ja tehokkaita.

Käännökset

englanti

monikko puhekieltä A finite sequence of terms.

A tuple is not merely a totally-ordered set because the same element can appear more than once in a tuple: for example, (a, b, a) qualifies as a 3-tuple whereas it would not qualify as a totally-ordered set (of cardinality 3), because the set would be \{a, b\} where a \le b and b \le a so that a = b; i.e., it would actually be a one-element set, \{a\}, not even just two-element.

If commutativity were added to a tuple, it would turn into a multiset or "bag". For example, words (of some alphabetic language) can be considered to be tuples of letters. If the ordering requirement on those letters were lifted, then the word would become a multiset of letters equivalent to those of its anagrams.

puhekieltä A single row in a relational database.
puhekieltä A set of comma-separated values passed to a program or operating system as a parameter to a function call.
puhekieltä In some programming languages, a data type that is similar but distinct from the list data type, whose instances are characterized by having a rather fixed arity, and the elements of which instances can differ from each other by data type. (Note: this definition may overlap with the previous one.)

Both Python and Haskell have a tuple data type as well as a list data type.

Unlike lists, tuples are not formed by consing.

leg; x1 is a/the leg (body-part) of x2; (metaphor: supporting branch).

Riimisanakirja

tuple rimmaa näiden kanssa:

ale, ginger ale, chippendale, kale, riekale, roikale, suikale, kekkale, vonkale, huiskale

Lisää riimejä

Rakastatko sanoja? Tarvitsetko lisää määritelmiä?

Tilaamalla Suomen suurimman sanakirjan saat tuhansia määritelmiä ja tarkennetun haun ilman mainoksia!

Suomisanakirja Pro