28 ms·
His first accumulate misses what is to me the most obvious way: (defun accumulate-f (n) (let* ((end (list (next))) (n (1- n)) (start end))
by aidenn0 16y ago
His first accumulate misses what is to me the most obvious way:
(defun accumulate-f (n)
(let* ((end (list (next)))
(n (1- n))
(start end))
(dotimes (_ n start)
(rplacd end (cons (next) nil))
(setq end (cdr end)))))