Browse Source

Style

master
Dylan Baker 5 years ago
parent
commit
fb75ea9bc2
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      src/core.js

+ 1
- 3
src/core.js View File

@@ -11,9 +11,7 @@ module.exports = {
11 11
   '<': (a, b) => new AST.Boolean({ value: a.value < b.value }),
12 12
   '>=': (a, b) => new AST.Boolean({ value: a.value >= b.value }),
13 13
   '<=': (a, b) => new AST.Boolean({ value: a.value <= b.value }),
14
-  list: (...args) => {
15
-    return new AST.List({ elements: args })
16
-  },
14
+  list: (...args) => new AST.List({ elements: args }),
17 15
   length: xs => new AST.Number({ value: xs.elements.length }),
18 16
   cons: (x, xs) => new AST.List({ elements: [x, ...xs.elements] }),
19 17
   head: xs => xs.elements[0],

Loading…
Cancel
Save