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

Pages: 1-

List-based or cudder-based?

Name: Anonymous 2007-09-25 17:45 ID:7mr7rOFy

What do you prefer? In particular, what are the advantages of cudder (cons) based lists over dynamic lists as seen in languages such as Python?

Name: Anonymous 2007-09-25 17:47 ID:Heaven

||Eat shit.//

Name: Anonymous 2007-09-25 17:53 ID:h3/K7TKC

Accessing the n-th element of a list in Python costs O(1) time, whereas accessing the n-th element of a cons based list costs O(n) time.

Name: Anonymous 2007-09-25 18:01 ID:7mr7rOFy

>>3
Yes, nth and len are the main advantages of lists, but why do I get the impression that some people value cudders for things other than their simplicity?

Name: Anonymous 2007-09-25 18:01 ID:Heaven

>>3
Which is easily reduced to O(1), you just have to read SICP.

Name: Anonymous 2007-09-25 18:40 ID:FJurtDmU

>>4
It's their other car.

Name: Anonymous 2007-09-25 19:11 ID:1Zl/ygpf

>>1
One word: recursive iteration over a list. Thread over.

Name: Anonymous 2007-09-27 8:18 ID:OZEhuaKJ

>>7
Bitches dont know bout my tail optimization

Name: Anonymous 2007-09-28 16:15 ID:eJf86iky

cudder = fail

no advantages

end of thread

Name: Anonymous 2007-09-28 16:25 ID:Heaven

from __past__ import cudders

Name: Anonymous 2007-09-28 23:18 ID:gwNmJ3UH

lisp users dont typically have a need to access n-th elements of list because things are done with recursion.

In lisp you would never do a for loop and access an each element based on i.

Name: Anonymous 2007-09-28 23:23 ID:Y8FHOhqm

>>11
Yes you would. Maybe a Schemer wouldn't, but a CL user most certainly would.

Name: Anonymous 2007-09-28 23:28 ID:U1oqvTP+

there is LIST-REF procedure (list-ref (list 1 2 3) 2) => 2

Name: Anonymous 2007-09-28 23:31 ID:Y8FHOhqm

>>13
For that matter, CL has FIRST, SECOND, ..., TENTH, as well as NTH to reference whichever.

Name: Anonymous 2011-02-03 7:46

Name: Anonymous 2012-06-25 23:55

ፆ衴ɂ䍣玒‴䔶㥈癄᠅─蕈夔皅䅹䢅䁲喗㦂فȀ煅҆傕ՠ䤵抓㢂‴衇最煦畀塹礗睇ᡓ怹撔Ȧ桗儇蠂吂鐇镈昹朓䌣⢕禁␨➖͘ㄨᥖ⤹茀瑲Ј薃䖁ޕ㉣朰ʼn隃昸အ㤷夣љ捠葤⡀゙晖連艉6䜸ᙦ঑䆄奃椦㜨蔣ざ㔧ॕܢ┇ئᤱ9ނ᝘䀩陃ᅴ須䙗ᖔ硦垖萹䆉嘠ᚗℒᜄ㉃儘䀘垅Ԩ刴y⡐敤䙡⥷鉂ᡥ妈衂̀ጁ悉█Ѹ阹ͨ塉ᒑ॓❘ᆆ焓ᤗ䤷ѓ䜳․鉖兩莅厒═₈㜹聳儗眘嘙ገ霕荧䍖煹如领☩栓坥㍣嘷衶⢉掉⑵慧㆓熙杗戢ॣ恷愷煰≷⢗㔲▉斅砆ᥴ㈈㙥蘄朗礗月⌅ᅸՓ研॑䊃鐂腷&顨ᑳ摵逰␹ذ㈓蚗傔塢硂癓荣慲硱瀕䌒熑攡ԧ搹㤤ᅡ噷䔁ܳ膔ᐨगɘ芄で儈饹晐蠧鑸鈕碅⥰ͷ匒䥙虘构榘眕͓喘砲蘖⠸࢙⥇␁⤁އ┸䒗蝕ℙ⑂㠨㞅椡呒ܑ偧䅱⚆鞘甗ဧ㙧ၳ㌨舙钙✸祖遉畡瑦䤇隗㦉ኙ偶酰偓䉲儧䡧ॣ祴㌲镨

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