A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,7 @@
|
|||
(defun forward-difference (list)
|
||||
(mapcar #'- (rest list) list))
|
||||
|
||||
(defun nth-forward-difference (list n)
|
||||
(setf list (copy-list list))
|
||||
(loop repeat n do (map-into list #'- (rest list) list))
|
||||
(subseq list 0 (- (length list) n)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue