Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

conses

Name: Anonymous 2007-09-28 16:32 ID:CxBKYAO9

http://en.wikipedia.org/wiki/Cons

So why are the fields called CAR and CDR anyway?
(in before your other car)

Name: Anonymous 2007-09-28 16:40 ID:ktQ7+19S

YOU FUCKING MAGGOT-BRAINED DUMBFUCK. FOLLOW THE ``CAR AND CDR'' LINK FROM THE VERY PAGE YOU LINKED TO AND READ FOR YOURSELF.

Name: Anonymous 2007-09-28 17:00 ID:CxBKYAO9

Lisp was originally implemented on the IBM 704 computer, in the late 1950s. On the 704, a cons cell was represented by a single 36-bit machine word containing two parts: an address part and a decrement part, each 15 bits long. The assembly functions used to extract either part of a machine word were called car (Contents of Address of Register) and cdr (Contents of Decrement of Register).

Oh lawd, what a gay design decision.

Name: sage 2007-09-28 17:02 ID:Heaven

>>3
sage

Name: Anonymous 2007-09-28 17:26 ID:Heaven

Sup guys, why not name the = operator after the mov instruction?

Name: Anonymous 2007-09-28 18:15 ID:acLch6ik

>>5
Because = is a test for equality?

Name: Anonymous 2007-09-28 18:18 ID:BMrwzx8r

>>6
It's also an operator typically associated with assignment of variables. Sort of like my other mov

Name: Anonymous 2007-09-28 19:18 ID:acLch6ik

>>7
In Lisp?

Name: Anonymous 2007-09-28 19:57 ID:8Mwz0ENK

>>8
No, in Lisp it's like
(car (cdr (movl (lea eax) (lambda () (car (cons x y))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

Name: Anonymous 2007-09-28 20:18 ID:mTiSD38W

>>9
not enough parenthesis

Name: Anonymous 2007-09-28 23:10 ID:e2O5cHT+

>>3
`car' and `cdr' are superior to something like `first' and second', because you can do things like caar (car of car), cddr (cdr of cdr), cadar (car of cdr of car), etc.

Name: Anonymous 2007-09-28 23:36 ID:mTiSD38W

>>11
stop using faggot quotes

Name: Anonymous 2007-09-28 23:50 ID:o4VYn2WB

|code]car      → head
cdr      → tail
caar     → head . head
cadar    → head . tail . head
caddaadr → head . tail . tail . head . head . tail

car      → \ (x:_) -> x
cdr      → \ (_:x) -> x
caar     → \ ((x:_):_) -> x
cadar    → \ ((_:(x:_)):_) -> x
caddaadr → \ (_:(((_:(_:(x:_))):_):_)) -> x[/code]

Name: cocks 2007-09-28 23:50 ID:Heaven

car      → head
cdr      → tail
caar     → head . head
cadar    → head . tail . head
caddaadr → head . tail . tail . head . head . tail

car      → \ (x:_) -> x
cdr      → \ (_:x) -> x
caar     → \ ((x:_):_) -> x
cadar    → \ ((_:(x:_)):_) -> x
caddaadr → \ (_:(((_:(_:(x:_))):_):_)) -> x

Name: Anonymous 2007-09-29 0:04 ID:eGkMuUST

($*) :: (a -> a) -> Int -> (a -> a)
f $* n = foldr (.) id . replicate n $ f

caaaddddadddadr → (head $* 3) . (tail $* 4) . head . (tail $* 3) . head . tail

Name: Anonymous 2007-09-29 0:35 ID:/DkwSNxp

>>15
Wry ($*) and not (.*)?

Name: Anonymous 2007-09-29 1:09 ID:eGkMuUST

>>16
Because I am a gigantic faggot. Besides, I just realized that it won't work on head.

Name: Anonymous 2007-09-29 1:20 ID:WOOKywdY

caaaddddadddadr
You got to be kidding. Who called perl unreadable?

Name: Anonymous 2007-09-29 1:24 ID:BzDO3EgP

>>18

I did.

Name: Anonymous 2007-09-29 1:25 ID:Heaven

>>18
who the fuck ever needs to find an item in a tree that specifically? FUCK, you people are morons

Name: Anonymous 2007-09-29 1:36 ID:WOOKywdY

>>20
just the fact that you can means lisp is finished

Name: Anonymous 2009-03-06 6:59


Html is probably the   strongest indicator of   where I currently   have a few   months ago and   you were all   forked from Ethiopia.

Name: ​​​​​​​​​​ 2010-09-09 10:02

Name: Anonymous 2010-12-06 9:35

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2011-09-18 20:45

5555555555555555555555[/sub]

Name: Anonymous 2013-01-19 23:12

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List