About: CAR and CDR     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : dbo:MilitaryConflict, within Data Space : dbpedia.org associated with source document(s)
QRcode icon
http://dbpedia.org/describe/?url=http%3A%2F%2Fdbpedia.org%2Fresource%2FCAR_and_CDR

In computer programming, CAR (car) /kɑːr/ and CDR (cdr) (/ˈkʌdər/ or /ˈkʊdər/) are primitive operations on cons cells (or "non-atomic S-expressions") introduced in the Lisp programming language. A cons cell is composed of two pointers; the car operation extracts the first pointer, and the cdr operation extracts the second. Thus, the expression (car (cons x y)) evaluates to x, and (cdr (cons x y)) evaluates to y.

AttributesValues
rdf:type
rdfs:label
  • CAR y CDR (es)
  • CAR and CDR (en)
  • Car e cdr (it)
  • CARとCDR (ja)
rdfs:comment
  • CARとCDR(カーとクダー)は、LISP言語の基本的なデータ型であるリストを操作するためのもっとも基本的な2つの関数である。LISP言語のリストはコンスセルと呼ばれる(ペアまたはドット対とも呼ばれる)二分木構造セルにより表現され、CARは二分木の片側を返しこれはリストの先頭の要素である。またCDRは二分木のもう片側を返しこれは後続する二分木セルである。 (ja)
  • In computer programming, CAR (car) /kɑːr/ and CDR (cdr) (/ˈkʌdər/ or /ˈkʊdər/) are primitive operations on cons cells (or "non-atomic S-expressions") introduced in the Lisp programming language. A cons cell is composed of two pointers; the car operation extracts the first pointer, and the cdr operation extracts the second. Thus, the expression (car (cons <i>x</i> <i>y</i>)) evaluates to <i>x</i>, and (cdr (cons <i>x</i> <i>y</i>)) evaluates to <i>y</i>. (en)
  • car y cdr son operaciones primitivas sobre las celdas (o "expresiones S no atómicas") introducidas en el lenguaje de programación Lisp. Una celda cons se compone de dos punteros, la operación car extrae el primer puntero, y la operación cdr extrae el segundo. Por lo tanto, la expresión (car (cons <i>x</i> <i>y</i>)) se evalúa como <i>x</i> , y (cdr (cons <i>x</i> <i>y</i>)) se evalúa como <i>y</i>. (es)
  • Introdotte nel linguaggio di programmazione Lisp, car e cdr (pronunciato /ˈkʌdər/ o /ˈkʊdər/) sono operazioni primitive che operano su liste concatenate composte da celle cons. Una cella cons è composta da due puntatori; l'operazione car estrae il primo puntatore e l'operazione cdr ne estrae il secondo. Così, l'espressione (car (cons <i>x</i> <i>y</i>)) restituisce <i>x</i> e (cdr (cons <i>x</i> <i>y</i>)) restituisce <i>y</i>. (it)
dcterms:subject
Wikipage page ID
Wikipage revision ID
Link from a Wikipage to another Wikipage
Link from a Wikipage to an external page
sameAs
dbp:wikiPageUsesTemplate
has abstract
  • In computer programming, CAR (car) /kɑːr/ and CDR (cdr) (/ˈkʌdər/ or /ˈkʊdər/) are primitive operations on cons cells (or "non-atomic S-expressions") introduced in the Lisp programming language. A cons cell is composed of two pointers; the car operation extracts the first pointer, and the cdr operation extracts the second. Thus, the expression (car (cons <i>x</i> <i>y</i>)) evaluates to <i>x</i>, and (cdr (cons <i>x</i> <i>y</i>)) evaluates to <i>y</i>. When cons cells are used to implement singly linked lists (rather than trees and other more complicated structures), the car operation returns the first element of the list, while cdr returns the rest of the list. For this reason, the operations are sometimes given the names first and rest or head and tail. (en)
  • car y cdr son operaciones primitivas sobre las celdas (o "expresiones S no atómicas") introducidas en el lenguaje de programación Lisp. Una celda cons se compone de dos punteros, la operación car extrae el primer puntero, y la operación cdr extrae el segundo. Por lo tanto, la expresión (car (cons <i>x</i> <i>y</i>)) se evalúa como <i>x</i> , y (cdr (cons <i>x</i> <i>y</i>)) se evalúa como <i>y</i>. Cuando las celdas cons son usadas para implementar listas enlazadas simples (en vez de árboles y otras estructuras más complicadas), la operación car devuelve el primer elemento de la lista, mientras que cdr devuelve el resto de la lista. Por esta razón, a las operaciones a veces se le dan los nombres de first y rest o head y tail (primero y resto o cabeza y cola). (es)
  • Introdotte nel linguaggio di programmazione Lisp, car e cdr (pronunciato /ˈkʌdər/ o /ˈkʊdər/) sono operazioni primitive che operano su liste concatenate composte da celle cons. Una cella cons è composta da due puntatori; l'operazione car estrae il primo puntatore e l'operazione cdr ne estrae il secondo. Così, l'espressione (car (cons <i>x</i> <i>y</i>)) restituisce <i>x</i> e (cdr (cons <i>x</i> <i>y</i>)) restituisce <i>y</i>. Quando le celle cons vengono usate per implementare liste singolarmente concatenate (piuttosto che alberi o altre strutture più complesse), l'operazione car restituisce il primo elemento della lista mentre cdr ne restituisce il resto. Per questo motivo queste operazioni vengono a volte chiamate first (primo) e rest (resto) o head (testa) e tail (coda). (it)
  • CARとCDR(カーとクダー)は、LISP言語の基本的なデータ型であるリストを操作するためのもっとも基本的な2つの関数である。LISP言語のリストはコンスセルと呼ばれる(ペアまたはドット対とも呼ばれる)二分木構造セルにより表現され、CARは二分木の片側を返しこれはリストの先頭の要素である。またCDRは二分木のもう片側を返しこれは後続する二分木セルである。 (ja)
gold:hypernym
prov:wasDerivedFrom
page length (characters) of wiki page
foaf:isPrimaryTopicOf
is Link from a Wikipage to another Wikipage of
is Wikipage redirect of
is Wikipage disambiguates of
is foaf:primaryTopic of
Faceted Search & Find service v1.17_git139 as of Feb 29 2024


Alternative Linked Data Documents: ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3330 as of Mar 19 2024, on Linux (x86_64-generic-linux-glibc212), Single-Server Edition (378 GB total memory, 48 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software