3 ms·
(define (snip! x) (set-car! x (cadr x)) (set-cdr! x (cddr x)) x) ?
by tonyg 3y ago
(define (snip! x) (set-car! x (cadr x)) (set-cdr! x (cddr x)) x) ?
- tmtvl 3y agoWon't work, errors on a single-element list. I think the solution would be the same as it is in CL: to just use vectors.