macros: fix nthcdr like @scolsen suggested

This commit is contained in:
hellerve 2019-11-26 07:13:14 +01:00
parent 44e5a89019
commit 231b0a1d97

View File

@ -87,7 +87,7 @@
(cxr (cons (- (car x) 1) (cdr x)) pair)))))
(defndynamic nthcdr [n pair]
(cxr (list n 'd) pair))
(cxr (list (+ n 1) 'd) pair))
(defndynamic nthcar [n pair]
(cxr (list 1 'a n 'd) pair))