Skip to content

Commit

Permalink
fix: quasiquoting breaks List.pairs (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Aug 30, 2022
1 parent d67e4be commit 0a7a835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/List.carp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ elements is uneven, the trailing element will be discarded.")
(defndynamic pairs [l]
(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`.")
(defndynamic nth [l n]
Expand Down

0 comments on commit 0a7a835

Please sign in to comment.