From ca85d069319c8593cbc199977fc339de2ce5faf6 Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Fri, 24 Jul 2015 17:17:16 -0700 Subject: [PATCH] [bug] Erroneous check for pairp in lists.coffee. --- src/lists.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lists.coffee b/src/lists.coffee index 2ef1420..6278be1 100644 --- a/src/lists.coffee +++ b/src/lists.coffee @@ -4,7 +4,7 @@ cellp = (a) -> vectorp(a) and a.__type == 'list' pairp = (a) -> cellp(a) and (a.length == 2) -listp = (a) -> (pairp a) and (pairp cdr a) +listp = (a) -> (pairp a) and (cellp cdr a) recordp = (a) -> Object.prototype.toString.call(a) == '[object Object]'