Oh, sad implication:
OP doesn't know what a cudder is,
ergo he had never touched Scheme,
ergo he didn't read SICP,
ergo he was unprofessionally prepared for programming,
or he is a troll.
Also, forced implementation of logical facts. Doubleplusgood.
Name:
Anonymous2007-09-25 12:54 ID:iAJ5jp/N
So a CDR is just something that's in fact highly exotic and irrelevant and only good for trolling, amirite?
>>1
In Scheme (and Lisp in general), there exists a structure called the cons cell, which contains two values or pointers to values. car returns the first item in a cons cell. cdr returns the second item in a cons cell. (car (cons 1 2)) => 1
(cdr (cons 1 2)) => 2
More importantly, cons cells are used to implement singly linked lists. The list structure is defined recursively; any list structure in Lisp is either:
1. An empty list, usually called nil and represented as '().
2. A cons cell whos car is the first element of the list and whose cdr is a smaller list containing the rest of the elements.
You can see that when dealing with lists, car returns the "head" of the list, and cdr returns the "tail" of the list.
>>11
You goddamn idiot!
Now you've done it, you fucking angered an expert progrAMMER
GODFUCKIGNDAMN
FIRST OF ALL, YOU DONT FUQIN KNOW WHAT A MAN PAGE IS
SECONDLY, THIS IS /prog/ DO NOT DEMAND USEFUL ANSWERS THE WAY YOU WANT THEM TO BE
THIRDLY PROGRAMMING IS ALL ABOUT PHILOSOPHY AND ``ABSTRACT BULLSHITE'' THAT YOU WILL NEVER COMPREHEND
AND FUQIN LASTLY, FUCK OFF WITH YOUR BULLSHYT
EVERYTHING HAS ALREADY BEEN ANSWERED IN>>3,4,10
THIS is infinitely better My impression is and others have taken some much better and more complex code is art bbcode is art is bbcode bbcode is art like placing a blank painting in.