git » jacl.git » commit fd5ea55

lambda list minor

author Alan Dipert
2019-10-26 15:58:44 UTC
committer Alan Dipert
2019-10-26 15:58:44 UTC
parent 878de8b265312e483578ea35a5d84b20fb09f0d3

lambda list minor

jacl.js +8 -9

diff --git a/jacl.js b/jacl.js
index 3760f89..28d5e9f 100644
--- a/jacl.js
+++ b/jacl.js
@@ -848,15 +848,14 @@ const analyzeBlock = (env, parent, forms) => {
 };
 
 const parseLambdaList = list => {
-  const kwNames = new Set(['&KEY', '&OPTIONAL', '&REST']),
-    arr = Cons.toArray(list);
-  let sections = {
-    required: [],
-    optional: [],
-    keyword: [],
-    rest: null
-  },
-    section = 'required';
+  let arr = Cons.toArray(list),
+    section = 'required',
+    sections = {
+      required: [],
+      optional: [],
+      keyword: [],
+      rest: null
+    };
   scan: for (let i = 0; i < arr.length; i++) {
     const x = list[i];
     if (x instanceof LispSymbol) {