9 ms·
Umm... what's this scheme_make_pair(car,cdr) function in plt/src/mzscheme/src/list.c? That's a wart (the crisis is in my mind :-) It doesn't have to be that w
by tnovelli 17y ago
Umm... what's this scheme_make_pair(car,cdr) function in plt/src/mzscheme/src/list.c? That's a wart (the crisis is in my mind :-)
It doesn't have to be that way: Clojure has abstract sequence types, with cons/car/cdr wrappers in case you want them.
- KirinDave 17y agoI fail to see how having a linked list datatype is a crisis. Use vectors if you don't like them. You can write a very large amount of complex, fully-functional scheme code without ever typing in any expression matching "c[ad]+r". PLT Scheme also comes with a host of sequence-agnostic (or sequence aware for performance) comprehensions: Please refer to: http://doc.plt-scheme.org/guide/for.html http://doc.plt-scheme.org/guide/for.html