List-based or cudder-based?
1
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?
2
Name:
Anonymous
2007-09-25 17:47
ID:Heaven
|| Eat shit. //
3
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.
4
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?
5
Name:
Anonymous
2007-09-25 18:01
ID:Heaven
>>3
Which is easily reduced to O(1), you just have to read SICP.
6
Name:
Anonymous
2007-09-25 18:40
ID:FJurtDmU
>>4
It's their other car.
7
Name:
Anonymous
2007-09-25 19:11
ID:1Zl/ygpf
>>1
One word: recursive iteration over a list. Thread over.
8
Name:
Anonymous
2007-09-27 8:18
ID:OZEhuaKJ
>>7
Bitches dont know bout my tail optimization
9
Name:
Anonymous
2007-09-28 16:15
ID:eJf86iky
cudder = fail
no advantages
end of thread
10
Name:
Anonymous
2007-09-28 16:25
ID:Heaven
from __past__ import cudders
11
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.
12
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.
13
Name:
Anonymous
2007-09-28 23:28
ID:U1oqvTP+
there is LIST-REF procedure (list-ref (list 1 2 3) 2) => 2
14
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.
16
Name:
Anonymous
2011-02-03 7:46
17
Name:
Anonymous
2012-06-25 23:55
ፆ衴ɂ䍣玒‴䔶㥈癄᠅─蕈夔皅䅹䢅䁲喗㦂فȀ煅҆傕ՠ䤵抓㢂‴衇最煦畀塹礗睇ᡓ怹撔Ȧ桗儇蠂吂鐇镈昹朓䌣⢕禁➖͘ㄨᥖ⤹茀瑲Ј薃䖁ޕ㉣朰ʼn隃昸အ㤷夣љ捠葤⡀゙晖連艉6䜸ᙦ䆄奃椦㜨蔣ざ㔧ॕܢ┇ئᤱ9ނ䀩陃ᅴ須䙗ᖔ硦垖萹䆉嘠ᚗℒᜄ㉃儘䀘垅Ԩ刴y⡐敤䙡⥷鉂ᡥ妈衂̀ጁ悉█Ѹ阹ͨ塉ᒑ॓❘ᆆ焓ᤗ䤷ѓ䜳․鉖兩莅厒═₈㜹聳儗眘嘙ገ霕荧䍖煹如领☩栓坥㍣嘷衶⢉掉⑵慧㆓熙杗戢ॣ恷愷煰≷⢗㔲▉斅砆ᥴ㈈㙥蘄朗礗月⌅ᅸՓ研॑䊃鐂腷&顨ᑳ摵逰ذ㈓蚗傔塢硂癓荣慲硱瀕䌒熑攡ԧ搹㤤ᅡ噷䔁ܳ膔ᐨगɘ芄で儈饹晐蠧鑸鈕碅⥰ͷ匒䥙虘构榘眕͓喘砲蘖⠸࢙⥇␁⤁އ┸䒗蝕ℙ⑂㠨㞅椡呒ܑ偧䅱⚆鞘甗ဧ㙧ၳ㌨舙钙✸祖遉畡瑦䤇隗㦉ኙ偶酰偓䉲儧䡧ॣ祴㌲镨