2:54:17didiIs there a straighter way of changing the cdr of each cons of a list of cons than: (mapcar (lambda (x) (cons (car x) (change (cdr x)))) list-of-cons) ?
2:59:45didiI want to avoid calling (cons (car x) ...).
3:31:52pjbdidi: clhs 3.6 For list traversal operations, the cdr chain of the list is not allowed to be destructively modified.
3:32:28pjbdidi: this doesn't prevent you to implement your own iteration, mutating the cdr as you want. But you have to think about what you are doing!
3:36:36White_Flamedidi: if you change every cdr, then what even is the list anymore?
3:45:20|3b|cdrs of conses stored in the list, not the ones making up the structure of the list
4:21:53pilltonThe wiki contains a few examples of how to use it.
4:23:28beachYou need to remind me of this. I am working on the CST-to-AST system, and I am notorious for having a hard time switching between different tasks.
4:25:17pilltonWell, template-function and its relative specialization-store, are for solving problems similar to the problems you faced when implementing the CL sequence protocol.
4:25:45slyrusand similar to ones I faced in wrting clem and opticl
4:26:10stylewarningpillton: did you see this kooky thing I wrote a few years ago? https://bitbucket.org/tarballs_are_good/parameterized-function
4:26:48stylewarningI don't think what I wrote is exactly matching the vision of what I wanted to write. But it worked ok enough for an efficient Lisp matrix library, even if the calling convention was verbose