mirror of
https://github.com/carp-lang/Carp.git
synced 2024-08-16 08:40:41 +03:00
fix: quasiquoting breaks List.pairs (#1431)
This commit is contained in:
parent
d67e4bea4c
commit
0a7a83543d
@ -337,7 +337,7 @@ elements is uneven, the trailing element will be discarded.")
|
|||||||
(defndynamic pairs [l]
|
(defndynamic pairs [l]
|
||||||
(if (< (length l) 2)
|
(if (< (length l) 2)
|
||||||
'()
|
'()
|
||||||
(cons `(%(car l) %(cadr l)) (List.pairs (cddr l)))))
|
(cons (list (car l) (cadr l)) (List.pairs (cddr l)))))
|
||||||
|
|
||||||
(doc nth "gets the nth element of the list `l`.")
|
(doc nth "gets the nth element of the list `l`.")
|
||||||
(defndynamic nth [l n]
|
(defndynamic nth [l n]
|
||||||
|
Loading…
Reference in New Issue
Block a user