From 0a7a83543d0e6857807a2d02e949bdc185862d9f Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Tue, 30 Aug 2022 15:40:13 +0200 Subject: [PATCH] fix: quasiquoting breaks List.pairs (#1431) --- core/List.carp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/List.carp b/core/List.carp index f50df7a7..11401990 100644 --- a/core/List.carp +++ b/core/List.carp @@ -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]