about summary refs log tree commit diff stats
path: root/lisp/js/lisp.js
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/js/lisp.js')
-rw-r--r--lisp/js/lisp.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/js/lisp.js b/lisp/js/lisp.js
index ee2b88d..3adb154 100644
--- a/lisp/js/lisp.js
+++ b/lisp/js/lisp.js
@@ -17,23 +17,23 @@
     },
 
     // math
-    add: (...args) => {
+    '+': (...args) => {
       return args.reduce((sum, val) => sum + val);
     },
 
-    sub: (...args) => { // Subtracts values.
+    '-': (...args) => { // Subtracts values.
       return args.reduce((sum, val) => sum - val);
     },
 
-    mul: (...args) => { // Multiplies values.
+    '*': (...args) => { // Multiplies values.
       return args.reduce((sum, val) => sum * val);
     },
 
-    div: (...args) => { // Divides values.
+    '/': (...args) => { // Divides values.
       return args.reduce((sum, val) => sum / val);
     },
 
-    mod: (a, b) => { // Returns the modulo of a and b.
+    '%': (a, b) => { // Returns the modulo of a and b.
       return a % b;
     },
 
@@ -78,15 +78,15 @@
     },
 
     // logic
-    gt: (a, b) => { // Returns true if a is greater than b, else false.
+    '>': (a, b) => { // Returns true if a is greater than b, else false.
       return a > b;
     },
 
-    lt: (a, b) => { // Returns true if a is less than b, else false.
+    '<': (a, b) => { // Returns true if a is less than b, else false.
       return a < b;
     },
 
-    eq: (a, b) => { // Returns true if a is equal to b, else false.
+    '=': (a, b) => { // Returns true if a is equal to b, else false.
       return a === b;
     },