Skip to content

Commit a4ddf63

Browse files
committed
Update index.ts
1 parent 6770cab commit a4ddf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse-lisp-expression/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function parseLet(expression: string): Expression {
1111
const content = expression.slice("(let ".length, -1);
1212
const list = parseList("(" + content + ")");
1313
// console.log(list);
14-
if (Array.isArray(list) && list.length == 0) {
14+
if (Array.isArray(list) && list.length <3) {
1515
throw Error("Invalid expression");
1616
}
1717
return buildExpression(["let", ...list]);

0 commit comments

Comments
 (0)