We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6770cab commit a4ddf63Copy full SHA for a4ddf63
parse-lisp-expression/index.ts
@@ -11,7 +11,7 @@ function parseLet(expression: string): Expression {
11
const content = expression.slice("(let ".length, -1);
12
const list = parseList("(" + content + ")");
13
// console.log(list);
14
- if (Array.isArray(list) && list.length == 0) {
+ if (Array.isArray(list) && list.length <3) {
15
throw Error("Invalid expression");
16
}
17
return buildExpression(["let", ...list]);
0 commit comments