[bug] Erroneous check for pairp in lists.coffee.

This commit is contained in:
Elf M. Sternberg 2015-07-24 17:17:16 -07:00
parent ae416ff5c4
commit ca85d06931
1 changed files with 1 additions and 1 deletions

View File

@ -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]'